From 6883153dd074e2c5c373b2ac2c4fed72ee330c03 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Sat, 16 Jun 2012 10:38:57 +0900 Subject: [PATCH] Cleanup, part 1 (C1) Change-Id: I2b1ddd836aaf6bfc0bd2befb78f98239ffcdbb22 --- .../com/android/inputmethod/latin/SettingsValues.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/java/src/com/android/inputmethod/latin/SettingsValues.java b/java/src/com/android/inputmethod/latin/SettingsValues.java index 5d33923df..a9a4313d4 100644 --- a/java/src/com/android/inputmethod/latin/SettingsValues.java +++ b/java/src/com/android/inputmethod/latin/SettingsValues.java @@ -157,8 +157,7 @@ public class SettingsValues { Integer.toString(res.getInteger(R.integer.config_key_preview_linger_timeout))); mUseContactsDict = prefs.getBoolean(Settings.PREF_KEY_USE_CONTACTS_DICT, true); mAutoCorrectEnabled = isAutoCorrectEnabled(res, mAutoCorrectionThresholdRawValue); - mBigramSuggestionEnabled = mAutoCorrectEnabled - && isBigramSuggestionEnabled(prefs, res, mAutoCorrectEnabled); + mBigramSuggestionEnabled = mAutoCorrectEnabled; mBigramPredictionEnabled = mBigramSuggestionEnabled && isBigramPredictionEnabled(prefs, res); // TODO: remove mEnableSuggestionSpanInsertion. It's always true. @@ -308,12 +307,6 @@ public class SettingsValues { R.integer.config_key_preview_linger_timeout)))); } - private static boolean isBigramSuggestionEnabled(final SharedPreferences sp, - final Resources resources, final boolean autoCorrectEnabled) { - // TODO: remove this method. Bigram suggestion is always true. - return true; - } - private static boolean isBigramPredictionEnabled(final SharedPreferences sp, final Resources resources) { return sp.getBoolean(Settings.PREF_BIGRAM_PREDICTIONS, resources.getBoolean(