Skip to content

Commit 1efacf7

Browse files
author
Craig Mautner
committed
Don't resize WindowStates without a Surface.
Check to make sure that a WindowState has a Surface before adding it to mResizingWindows. Fixes bug 6300793. Change-Id: Ieb39422523360dcdd5f5bf8109f061ae1ced62b2
1 parent 002f537 commit 1efacf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/wm/WindowManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8070,7 +8070,7 @@ private int animateAwayWallpaperLocked() {
80708070

80718071
private void updateResizingWindows(final WindowState w) {
80728072
final WindowStateAnimator winAnimator = w.mWinAnimator;
8073-
if (!w.mAppFreezing && w.mLayoutSeq == mLayoutSeq) {
8073+
if (w.mHasSurface && !w.mAppFreezing && w.mLayoutSeq == mLayoutSeq) {
80748074
w.mContentInsetsChanged |=
80758075
!w.mLastContentInsets.equals(w.mContentInsets);
80768076
w.mVisibleInsetsChanged |=

0 commit comments

Comments
 (0)