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

Commit e6b4e24b authored by Adrian Roos's avatar Adrian Roos
Browse files

IME: make WindowInsetsController.show(ime()) more robust

We need to make sure the served view is up-to-date, otherwise we might
erroneously reject or allow a request to show the IME via WindowInsetsController.

Fixes: 190217891
Test: atest WindowInsetsControllerTests#testShowIme_immediatelyAfterDetachAndReattach
Change-Id: Ib41412d5d5636bdc236aa94c4ee4702686b6d10f
parent 6171d87b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2194,6 +2194,7 @@ public final class InputMethodManager {
     * @hide
     */
    public boolean requestImeShow(IBinder windowToken) {
        checkFocus();
        synchronized (mH) {
            final View servedView = getServedViewLocked();
            if (servedView == null || servedView.getWindowToken() != windowToken) {