diff options
| author | Aaron Echols <atechols@gmail.com> | 2012-11-28 09:26:14 -0500 |
|---|---|---|
| committer | Rick C <rickfitsnugly@gmail.com> | 2012-11-28 09:29:59 -0500 |
| commit | af7537801de4bfc87091acccccc5c3e646f4dba7 (patch) | |
| tree | 5911302791c6333b3407c379ad0572d2fae2bfcc /services/java/com/android/server/InputMethodManagerService.java | |
| parent | 17cbe6c3a89bacd5e4349bfa3f69b36e43737826 (diff) | |
| download | frameworks_base-af7537801de4bfc87091acccccc5c3e646f4dba7.zip frameworks_base-af7537801de4bfc87091acccccc5c3e646f4dba7.tar.gz frameworks_base-af7537801de4bfc87091acccccc5c3e646f4dba7.tar.bz2 | |
Port "Add resource to disable the CM Phone IME selector method"
Change-Id: I6fb482e227bf1de4799923cc952d4e3c8ad0d037
Diffstat (limited to 'services/java/com/android/server/InputMethodManagerService.java')
| -rw-r--r-- | services/java/com/android/server/InputMethodManagerService.java | 10 |
1 files changed, 8 insertions, 2 deletions
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) { |
