OSDN Git Service

Merge "Layout the window to be displayed if it would be resized"
[android-x86/frameworks-base.git] / services / core / java / com / android / server / wm / WindowManagerService.java
index 8e2a055..109785c 100644 (file)
@@ -3127,6 +3127,10 @@ public class WindowManagerService extends IWindowManager.Stub
                 }
                 winAnimator.mEnteringAnimation = true;
                 if (toBeDisplayed) {
+                    if ((win.mAttrs.softInputMode & SOFT_INPUT_MASK_ADJUST)
+                            == SOFT_INPUT_ADJUST_RESIZE) {
+                        win.mLayoutNeeded = true;
+                    }
                     if (win.isDrawnLw() && okToDisplay()) {
                         winAnimator.applyEnterAnimationLocked();
                     }