aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorChieu Nguyen <cvnguyen@google.com>2015-03-24 00:25:46 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-24 00:25:47 +0000
commitfac1f631b96c4ab852be950c03ef3d57faa86b28 (patch)
tree18cfe0a62b9b4cf5ba5188fff7072a5108d29a0b /java
parentc4f71f6be88ffd610293ebe420733351ca016a83 (diff)
parent1eedcfb29087eac58c9c14afaec0345bef5da445 (diff)
downloadlatinime-fac1f631b96c4ab852be950c03ef3d57faa86b28.tar.gz
latinime-fac1f631b96c4ab852be950c03ef3d57faa86b28.tar.xz
latinime-fac1f631b96c4ab852be950c03ef3d57faa86b28.zip
Merge "Reenable next-word suggestion if autocorrection reenabled."
Diffstat (limited to 'java')
-rw-r--r--java/src/com/android/inputmethod/latin/settings/CorrectionSettingsFragment.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/settings/CorrectionSettingsFragment.java b/java/src/com/android/inputmethod/latin/settings/CorrectionSettingsFragment.java
index f7c5f6760..32cc526c0 100644
--- a/java/src/com/android/inputmethod/latin/settings/CorrectionSettingsFragment.java
+++ b/java/src/com/android/inputmethod/latin/settings/CorrectionSettingsFragment.java
@@ -49,7 +49,7 @@ import java.util.TreeSet;
*/
public final class CorrectionSettingsFragment extends SubScreenFragment {
private static final boolean DBG_USE_INTERNAL_PERSONAL_DICTIONARY_SETTINGS = false;
- private static final boolean USE_INTERNAL_PERSONAL_DICTIONARY_SETTIGS =
+ private static final boolean USE_INTERNAL_PERSONAL_DICTIONARY_SETTINGS =
DBG_USE_INTERNAL_PERSONAL_DICTIONARY_SETTINGS
|| Build.VERSION.SDK_INT <= Build.VERSION_CODES.JELLY_BEAN_MR2;
@@ -74,7 +74,7 @@ public final class CorrectionSettingsFragment extends SubScreenFragment {
final Preference editPersonalDictionary =
findPreference(Settings.PREF_EDIT_PERSONAL_DICTIONARY);
final Intent editPersonalDictionaryIntent = editPersonalDictionary.getIntent();
- final ResolveInfo ri = USE_INTERNAL_PERSONAL_DICTIONARY_SETTIGS ? null
+ final ResolveInfo ri = USE_INTERNAL_PERSONAL_DICTIONARY_SETTINGS ? null
: pm.resolveActivity(
editPersonalDictionaryIntent, PackageManager.MATCH_DEFAULT_ONLY);
if (ri == null) {
@@ -90,9 +90,7 @@ public final class CorrectionSettingsFragment extends SubScreenFragment {
private void ensureConsistencyOfAutoCorrectionSettings() {
final TwoStatePreference autoCorrectionPref = (TwoStatePreference)
findPreference(Settings.PREF_AUTO_CORRECTION);
- if (!autoCorrectionPref.isChecked()) {
- setPreferenceEnabled(Settings.PREF_BIGRAM_PREDICTIONS, false);
- }
+ setPreferenceEnabled(Settings.PREF_BIGRAM_PREDICTIONS, autoCorrectionPref.isChecked());
}
private void overwriteUserDictionaryPreference(final Preference userDictionaryPreference) {