Merge "Fine-tune the condition to hide IME switcher" into oc-dr1-dev

am: dbd60cd6ee

Change-Id: I5b6ff8bb9913fb43386c51fd47ae5e80e76541f2
This commit is contained in:
Yohei Yukawa
2017-08-01 06:11:02 +00:00
committed by android-build-merger

View File

@@ -2110,7 +2110,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) {