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

Commit 8bd206b5 authored by Craig Mautner's avatar Craig Mautner
Browse files

Don't set keyboard insets if keyboard is hidden.

Makes sense.

Bug: 7256294 fixed.
Change-Id: I435fc2e6e5acdf5c4d70b9dad1a30d7fe7c11b31
parent 7ba4b482
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);
        }