aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/DebugSettings.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-04-22 00:51:07 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-04-22 00:51:07 -0700
commit940b8d81f3631148886d463c725984b35055e842 (patch)
tree23feed3d452ca2063de79276709c847453117a10 /java/src/com/android/inputmethod/latin/DebugSettings.java
parentb50591295d7c4ff7bb46ddf3e609d0046eb64d18 (diff)
parentc5a2b51924ba816a1bcbc1e42ea65e58bd4f44e7 (diff)
downloadlatinime-940b8d81f3631148886d463c725984b35055e842.tar.gz
latinime-940b8d81f3631148886d463c725984b35055e842.tar.xz
latinime-940b8d81f3631148886d463c725984b35055e842.zip
Merge "Add an debug option to use spacebar switcher"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/DebugSettings.java')
-rw-r--r--java/src/com/android/inputmethod/latin/DebugSettings.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/DebugSettings.java b/java/src/com/android/inputmethod/latin/DebugSettings.java
index 2f1e7c2b8..fd62d61c3 100644
--- a/java/src/com/android/inputmethod/latin/DebugSettings.java
+++ b/java/src/com/android/inputmethod/latin/DebugSettings.java
@@ -33,6 +33,7 @@ public class DebugSettings extends PreferenceActivity
private boolean mServiceNeedsRestart = false;
private CheckBoxPreference mDebugMode;
+ private CheckBoxPreference mUseSpacebarLanguageSwitch;
@Override
protected void onCreate(Bundle icicle) {
@@ -60,6 +61,13 @@ public class DebugSettings extends PreferenceActivity
updateDebugMode();
mServiceNeedsRestart = true;
}
+ } else if (key.equals(SubtypeSwitcher.USE_SPACEBAR_LANGUAGE_SWITCH_KEY)) {
+ if (mUseSpacebarLanguageSwitch != null) {
+ mUseSpacebarLanguageSwitch.setChecked(
+ prefs.getBoolean(SubtypeSwitcher.USE_SPACEBAR_LANGUAGE_SWITCH_KEY,
+ getResources().getBoolean(
+ R.bool.config_use_spacebar_language_switcher)));
+ }
}
}