Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05a6cbe2 authored by satok's avatar satok
Browse files

Fix a bug with IME blinking just after leaving the lock screen

Bug: 6286786
Change-Id: I9ee42482f7abffaefec31f0c4a661bef7c230137
parent 8fa23393
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -405,9 +405,11 @@ public final class InputMethodManager {
                            }
                            // Check focus again in case that "onWindowFocus" is called before
                            // handling this message.
                            if (mServedView != null && mServedView.hasWindowFocus()) {
                                checkFocus(mHasBeenInactive);
                            }
                        }
                    }
                    return;
                }
            }
@@ -1202,7 +1204,9 @@ public final class InputMethodManager {
            }
            if (DEBUG) Log.v(TAG, "checkFocus: view=" + mServedView
                    + " next=" + mNextServedView
                    + " forceNewFocus=" + forceNewFocus);
                    + " forceNewFocus=" + forceNewFocus
                    + " package="
                    + (mServedView != null ? mServedView.getContext().getPackageName() : "<none>"));

            if (mNextServedView == null) {
                finishInputLocked();