Layout the window to be displayed if it would be resized

This patch fixes an issue which caused the resumed app to get the
wrong insets at first.

https://code.google.com/p/android/issues/detail?id=120421

Change-Id: I38c58121465372d1d66a7a98e386b0396d7d0f89
This commit is contained in:
tiger_huang
2015-01-29 19:54:12 +08:00
parent 106da5bf80
commit 6b6838e967

View File

@@ -3083,6 +3083,10 @@ public class WindowManagerService extends IWindowManager.Stub
winAnimator.mEnterAnimationPending = true;
}
if (toBeDisplayed) {
if ((win.mAttrs.softInputMode & SOFT_INPUT_MASK_ADJUST)
== SOFT_INPUT_ADJUST_RESIZE) {
win.mLayoutNeeded = true;
}
if (win.isDrawnLw() && okToDisplay()) {
winAnimator.applyEnterAnimationLocked();
}