diff options
| author | 2017-08-01 06:01:20 +0000 | |
|---|---|---|
| committer | 2017-08-01 06:01:20 +0000 | |
| commit | dbd60cd6eeb2d7f4e3ca124bedc1fd2ba7ecb4b0 (patch) | |
| tree | d5791be3a6c336305b0463184f33d103c565d58d | |
| parent | 1831989a6e3ccf3610c53585d530383ea6debc7d (diff) | |
| parent | d2bc309f0680c72731cf79f1abb300daebf1ec92 (diff) | |
Merge "Fine-tune the condition to hide IME switcher" into oc-dr1-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 bff39b319d4a..192fa3a2bb38 100644 --- a/services/core/java/com/android/server/InputMethodManagerService.java +++ b/services/core/java/com/android/server/InputMethodManagerService.java @@ -2088,7 +2088,8 @@ public class InputMethodManagerService extends IInputMethodManager.Stub private boolean shouldShowImeSwitcherLocked(int visibility) { if (!mShowOngoingImeSwitcherForPhones) return false; if (mSwitchingDialog != null) return false; - if (isScreenLocked()) return false; + if (mWindowManagerInternal.isKeyguardShowingAndNotOccluded() + && mKeyguardManager != null && mKeyguardManager.isKeyguardSecure()) return false; if ((visibility & InputMethodService.IME_ACTIVE) == 0) return false; if (mWindowManagerInternal.isHardKeyboardAvailable()) { if (mHardKeyboardBehavior == HardKeyboardBehavior.WIRELESS_AFFORDANCE) { |