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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user