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

Commit db74299f authored by Craig Mautner's avatar Craig Mautner Committed by The Android Automerger
Browse files

Don't set keyboard insets if keyboard is hidden.

Makes sense.

Bug: 7256294 fixed.
Change-Id: I435fc2e6e5acdf5c4d70b9dad1a30d7fe7c11b31
parent 83ab5f6e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2826,7 +2826,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {

        // Dock windows carve out the bottom of the screen, so normal windows
        // can't appear underneath them.
        if (attrs.type == TYPE_INPUT_METHOD && !win.getGivenInsetsPendingLw()) {
        if (attrs.type == TYPE_INPUT_METHOD && win.isVisibleOrBehindKeyguardLw()
                && !win.getGivenInsetsPendingLw()) {
            setLastInputMethodWindowLw(null, null);
            offsetInputMethodWindowLw(win);
        }