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

Commit 2f3debc0 authored by Cosmin Băieș's avatar Cosmin Băieș Committed by Android (Google) Code Review
Browse files

Merge "Reset IME visible types only when losing control" into main

parents 72575490 d2bfeca1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -196,11 +196,11 @@ public final class ImeInsetsSourceConsumer extends InsetsSourceConsumer {
        if (!super.setControl(control, showTypes, hideTypes)) {
            return false;
        }
        final boolean hasLeash = control != null && control.getLeash() != null;
        if (!hasLeash && !mIsRequestedVisibleAwaitingLeash) {
        if (control == null && !mIsRequestedVisibleAwaitingLeash) {
            mController.setRequestedVisibleTypes(0 /* visibleTypes */, getType());
            removeSurface();
        }
        final boolean hasLeash = control != null && control.getLeash() != null;
        if (hasLeash) {
            mIsRequestedVisibleAwaitingLeash = false;
        }