Merge "Allow IME hiding on displays without system decorations" into sc-dev

This commit is contained in:
Sean Stout
2021-03-23 07:23:51 +00:00
committed by Android (Google) Code Review

View File

@@ -3199,7 +3199,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
boolean showCurrentInputLocked(IBinder windowToken, int flags, ResultReceiver resultReceiver,
@SoftInputShowHideReason int reason) {
mShowRequested = true;
if (mAccessibilityRequestingNoSoftKeyboard) {
if (mAccessibilityRequestingNoSoftKeyboard || mImeHiddenByDisplayPolicy) {
return false;
}