diff options
| author | 2016-03-30 05:47:39 +0000 | |
|---|---|---|
| committer | 2016-03-30 05:47:41 +0000 | |
| commit | 7c101a40da11d4c829a7b69dcd9f097e4afdc39c (patch) | |
| tree | f8d664ac1f37842b8ca6fb4be6adbfba29520fb6 | |
| parent | e1f9e5152a9422ae9ef65d4d159ed79f383fc87f (diff) | |
| parent | 8939838d5d3ee8324d156ce60af4c7feacbb22a2 (diff) | |
Merge "IME switcher should not always require IME_VISIBLE." into nyc-dev
| -rw-r--r-- | services/core/java/com/android/server/InputMethodManagerService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/InputMethodManagerService.java b/services/core/java/com/android/server/InputMethodManagerService.java index e04248303c20..77b3111fa98b 100644 --- a/services/core/java/com/android/server/InputMethodManagerService.java +++ b/services/core/java/com/android/server/InputMethodManagerService.java @@ -1715,8 +1715,9 @@ public class InputMethodManagerService extends IInputMethodManager.Stub // exists in the IME switcher dialog. Might be OK to remove this condition once // SHOW_IME_WITH_HARD_KEYBOARD settings finds a good place to live. return true; + } else if ((visibility & InputMethodService.IME_VISIBLE) == 0) { + return false; } - if ((visibility & InputMethodService.IME_VISIBLE) == 0) return false; List<InputMethodInfo> imis = mSettings.getEnabledInputMethodListLocked(); final int N = imis.size(); |