From 9aa7f66a15b7db2c0bf8924ba17ae9fe463441b5 Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Wed, 14 May 2014 14:26:29 +0900 Subject: Simplify StatsUtils With this CL, the implementation of StatsUtils no longer needs to know how to read settings from the system. Insted, the LatinIME class is now responsible for notifying StatsUtils whenever the settings is changed. BUG: 14324207 Change-Id: Ic3d26ec31c8d2c082d3e7487b578b323aad2f960 --- java/src/com/android/inputmethod/latin/settings/SettingsValues.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'java/src/com/android/inputmethod/latin/settings/SettingsValues.java') diff --git a/java/src/com/android/inputmethod/latin/settings/SettingsValues.java b/java/src/com/android/inputmethod/latin/settings/SettingsValues.java index de2eb951e..16fd05877 100644 --- a/java/src/com/android/inputmethod/latin/settings/SettingsValues.java +++ b/java/src/com/android/inputmethod/latin/settings/SettingsValues.java @@ -73,6 +73,7 @@ public final class SettingsValues { public final boolean mPhraseGestureEnabled; public final int mKeyLongpressTimeout; public final Locale mLocale; + public final boolean mEnableMetricsLogging; // From the input box public final InputAttributes mInputAttributes; @@ -134,7 +135,7 @@ public final class SettingsValues { mAutoCorrectEnabled = Settings.readAutoCorrectEnabled(autoCorrectionThresholdRawValue, res); mBigramPredictionEnabled = readBigramPredictionEnabled(prefs, res); mDoubleSpacePeriodTimeout = res.getInteger(R.integer.config_double_space_period_timeout); - + mEnableMetricsLogging = prefs.getBoolean(Settings.PREF_ENABLE_METRICS_LOGGING, true); // Compute other readable settings mKeyLongpressTimeout = Settings.readKeyLongpressTimeout(prefs, res); mKeypressVibrationDuration = Settings.readKeypressVibrationDuration(prefs, res); -- cgit v1.2.3-83-g751a