aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2011-01-18 19:08:15 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-01-18 19:08:15 -0800
commit8b0febc6f0b6c2bd2a7b135fe1e1b7ff296727c1 (patch)
tree9c936392fc4786c47adcfcd1bebf057e84109e8b /java/src/com/android/inputmethod/latin/LatinIME.java
parentbbd651a00898dabf6b2ae0e715d99953ea81063f (diff)
parentfd7d814c81132bdd59146a39dd668532f9514cd1 (diff)
downloadlatinime-8b0febc6f0b6c2bd2a7b135fe1e1b7ff296727c1.tar.gz
latinime-8b0febc6f0b6c2bd2a7b135fe1e1b7ff296727c1.tar.xz
latinime-8b0febc6f0b6c2bd2a7b135fe1e1b7ff296727c1.zip
Merge "Simplify latin IME settings page." into honeycomb
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 4b218a333..5d48d6b36 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -353,8 +353,16 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
final Resources res = getResources();
mResources = res;
- mReCorrectionEnabled = prefs.getBoolean(Settings.PREF_RECORRECTION_ENABLED,
- res.getBoolean(R.bool.default_recorrection_enabled));
+
+ // If the option should not be shown, do not read the recorrection preference
+ // but always use the default setting defined in the resources.
+ if (res.getBoolean(R.bool.config_enable_show_recorrection_option)) {
+ mReCorrectionEnabled = prefs.getBoolean(Settings.PREF_RECORRECTION_ENABLED,
+ res.getBoolean(R.bool.default_recorrection_enabled));
+ } else {
+ mReCorrectionEnabled = res.getBoolean(R.bool.default_recorrection_enabled);
+ }
+
mConfigSwipeDownDismissKeyboardEnabled = res.getBoolean(
R.bool.config_swipe_down_dismiss_keyboard_enabled);
mConfigDelayBeforeFadeoutLanguageOnSpacebar = res.getInteger(