Merge "[RESTRICT AUTOMERGE] Fix Keyboard shown after force stopped app package" into rvc-qpr-dev

This commit is contained in:
Wilson Wu
2020-11-12 13:51:09 +00:00
committed by Android (Google) Code Review

View File

@@ -3275,9 +3275,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
boolean hideCurrentInputLocked(IBinder windowToken, int flags, ResultReceiver resultReceiver, boolean hideCurrentInputLocked(IBinder windowToken, int flags, ResultReceiver resultReceiver,
@SoftInputShowHideReason int reason) { @SoftInputShowHideReason int reason) {
if (mCurClient == null || mCurClient.curSession == null) {
return false;
}
if ((flags&InputMethodManager.HIDE_IMPLICIT_ONLY) != 0 if ((flags&InputMethodManager.HIDE_IMPLICIT_ONLY) != 0
&& (mShowExplicitlyRequested || mShowForced)) { && (mShowExplicitlyRequested || mShowForced)) {
if (DEBUG) Slog.v(TAG, "Not hiding: explicit show not cancelled by non-explicit hide"); if (DEBUG) Slog.v(TAG, "Not hiding: explicit show not cancelled by non-explicit hide");