summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcore/res/res/values/config.xml3
-rw-r--r--core/res/res/values/symbols.xml1
-rw-r--r--services/java/com/android/server/InputMethodManagerService.java10
3 files changed, 12 insertions, 2 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index 30391a1..1b3a6da 100755
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -1045,4 +1045,7 @@
<!-- Workaround for devices with broken keyboards -->
<bool name="config_forceDisableHardwareKeyboard">false</bool>
+ <!-- Setting to false will disable CM's IME switcher implementation for tablets -->
+ <bool name="config_show_cmIMESwitcher">true</bool>
+
</resources>
diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml
index b3c2b9a..32b81f5 100644
--- a/core/res/res/values/symbols.xml
+++ b/core/res/res/values/symbols.xml
@@ -1825,6 +1825,7 @@
<java-symbol type="bool" name="config_forceDisableHardwareKeyboard" />
<java-symbol type="bool" name="config_hasRotationLockSwitch" />
<java-symbol type="integer" name="config_backKillTimeout" />
+ <java-symbol type="bool" name="config_show_cmIMESwitcher"/>
<!-- Notification and battery light -->
<java-symbol type="bool" name="config_intrusiveBatteryLed" />
diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java
index 445a4bb..b4c6a3e 100644
--- a/services/java/com/android/server/InputMethodManagerService.java
+++ b/services/java/com/android/server/InputMethodManagerService.java
@@ -1611,8 +1611,14 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
mCurMethodId = null;
unbindCurrentMethodLocked(true, false);
}
- mShowOngoingImeSwitcherForPhones = Settings.System.getInt(mContext.getContentResolver(),
- Settings.System.STATUS_BAR_IME_SWITCHER, 1) == 1;
+ // code to disable the CM Phone IME switcher with config_show_cmIMESwitcher set = false
+ try {
+ mShowOngoingImeSwitcherForPhones = Settings.System.getInt(mContext.getContentResolver(),
+ Settings.System.STATUS_BAR_IME_SWITCHER) == 1;
+ } catch (SettingNotFoundException e) {
+ mShowOngoingImeSwitcherForPhones = mRes.getBoolean(
+ com.android.internal.R.bool.config_show_cmIMESwitcher);
+ }
}
/* package */ void setInputMethodLocked(String id, int subtypeId) {