Fix minor issue with IME

Because we only "carve" out the area for the IME once it's actually
visible now, we need to relayout the windows when we show it - else
they won't update the insets until the next real layout happens.

Bug: 28175599
Change-Id: Ie0af1225da03905bfcb52044e212812c892c88a9
This commit is contained in:
Jorim Jaggi
2016-04-14 19:55:35 -07:00
parent 7e25024758
commit 7a4fd5e1f2

View File

@@ -1774,6 +1774,10 @@ class WindowStateAnimator {
} }
if (mWin.mAttrs.type == TYPE_INPUT_METHOD) { if (mWin.mAttrs.type == TYPE_INPUT_METHOD) {
mService.adjustForImeIfNeeded(mWin.mDisplayContent); mService.adjustForImeIfNeeded(mWin.mDisplayContent);
if (isEntrance) {
mWin.setDisplayLayoutNeeded();
mService.mWindowPlacerLocked.requestTraversal();
}
} }
return mAnimation != null; return mAnimation != null;
} }