aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/SettingsValues.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-06-14 14:49:20 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-06-14 14:49:20 -0700
commit42ecf39d04df9eb02e57cf29e63552bc04092857 (patch)
tree95e7ac504e34119343fb842119f848fc2c581256 /java/src/com/android/inputmethod/latin/SettingsValues.java
parentde1d88eb4199160899d227f2c679215e16410c42 (diff)
parent002e43ead02268ee17033289ab3043511505856b (diff)
downloadlatinime-42ecf39d04df9eb02e57cf29e63552bc04092857.tar.gz
latinime-42ecf39d04df9eb02e57cf29e63552bc04092857.tar.xz
latinime-42ecf39d04df9eb02e57cf29e63552bc04092857.zip
am 002e43ea: Merge "Remove irrelevant options." into jb-dev
* commit '002e43ead02268ee17033289ab3043511505856b': Remove irrelevant options.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SettingsValues.java')
-rw-r--r--java/src/com/android/inputmethod/latin/SettingsValues.java13
1 files changed, 4 insertions, 9 deletions
diff --git a/java/src/com/android/inputmethod/latin/SettingsValues.java b/java/src/com/android/inputmethod/latin/SettingsValues.java
index 4aae6a85e..b07c3e59f 100644
--- a/java/src/com/android/inputmethod/latin/SettingsValues.java
+++ b/java/src/com/android/inputmethod/latin/SettingsValues.java
@@ -135,8 +135,8 @@ public class SettingsValues {
&& isBigramSuggestionEnabled(prefs, res, mAutoCorrectEnabled);
mBigramPredictionEnabled = mBigramSuggestionEnabled
&& isBigramPredictionEnabled(prefs, res);
- mEnableSuggestionSpanInsertion =
- prefs.getBoolean(Settings.PREF_KEY_ENABLE_SPAN_INSERT, true);
+ // TODO: remove mEnableSuggestionSpanInsertion. It's always true.
+ mEnableSuggestionSpanInsertion = true;
mVibrationDurationSettingsRawValue =
prefs.getInt(Settings.PREF_VIBRATION_DURATION_SETTINGS, -1);
mKeypressSoundVolumeRawValue = prefs.getFloat(Settings.PREF_KEYPRESS_SOUND_VOLUME, -1.0f);
@@ -242,13 +242,8 @@ public class SettingsValues {
private static boolean isBigramSuggestionEnabled(final SharedPreferences sp,
final Resources resources, final boolean autoCorrectEnabled) {
- final boolean showBigramSuggestionsOption = resources.getBoolean(
- R.bool.config_enable_next_word_suggestions_option);
- if (!showBigramSuggestionsOption) {
- return autoCorrectEnabled;
- }
- return sp.getBoolean(Settings.PREF_BIGRAM_SUGGESTION, resources.getBoolean(
- R.bool.config_default_next_word_suggestions));
+ // TODO: remove this method. Bigram suggestion is always true.
+ return true;
}
private static boolean isBigramPredictionEnabled(final SharedPreferences sp,