diff options
author | Jason Monk <jmonk@google.com> | 2014-05-08 15:47:46 -0400 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2014-05-13 10:42:19 -0400 |
commit | 807ef76e23e08405532a0e7e2d71e7433bf7ae9a (patch) | |
tree | 606ac46896155bea0fea3c2c0ba24b6aad68f1c5 /services | |
parent | 11b7a3813901e9894a37222848c56d8ae353d38d (diff) | |
download | frameworks_base-807ef76e23e08405532a0e7e2d71e7433bf7ae9a.zip frameworks_base-807ef76e23e08405532a0e7e2d71e7433bf7ae9a.tar.gz frameworks_base-807ef76e23e08405532a0e7e2d71e7433bf7ae9a.tar.bz2 |
Don't show switcher button when IME switcher shown
This keeps track of when the switcher is being shown and disables
the IME switcher button/notification when it is up.
Bug: 14631536
Change-Id: I4adf24bc5fa6377645915419583d60596b3bdde0
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/InputMethodManagerService.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/InputMethodManagerService.java b/services/core/java/com/android/server/InputMethodManagerService.java index 10315a7..0b9570d 100644 --- a/services/core/java/com/android/server/InputMethodManagerService.java +++ b/services/core/java/com/android/server/InputMethodManagerService.java @@ -1464,6 +1464,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub private boolean needsToShowImeSwitchOngoingNotification() { if (!mShowOngoingImeSwitcherForPhones) return false; + if (mSwitchingDialog != null) return false; if (isScreenLocked()) return false; synchronized (mMethodMap) { List<InputMethodInfo> imis = mSettings.getEnabledInputMethodListLocked(); @@ -2812,6 +2813,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub mSwitchingDialog.getWindow().getAttributes().privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS; mSwitchingDialog.getWindow().getAttributes().setTitle("Select input method"); + updateImeWindowStatusLocked(); mSwitchingDialog.show(); } } @@ -2869,6 +2871,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub mSwitchingDialog = null; } + updateImeWindowStatusLocked(); mDialogBuilder = null; mIms = null; } |