Skip to content

Commit 8bd206b

Browse files
author
Craig Mautner
committed
Don't set keyboard insets if keyboard is hidden.
Makes sense. Bug: 7256294 fixed. Change-Id: I435fc2e6e5acdf5c4d70b9dad1a30d7fe7c11b31
1 parent 7ba4b48 commit 8bd206b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2826,7 +2826,8 @@ public void layoutWindowLw(WindowState win, WindowManager.LayoutParams attrs,
28262826

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

0 commit comments

Comments
 (0)