From 39357708b7b1017210985c9814d5a9328655aba9 Mon Sep 17 00:00:00 2001 From: Ulf Rosdahl Date: Wed, 29 Sep 2010 12:34:38 +0200 Subject: Corrected visibility reporting error in WindowManager Correction for the error: When a window is done animating and about to be destroyed, it is still checked for visibility in the method updateReportedVisibilityLocked in the WindowManager. In the case where other windows are ready to be reported as visible, this, not yet destroyed window which has the state not visible, will prevent the visibility report message from being sent. Change-Id: I9e307a678a204f0883ccd78c2645c373d3f81066 --- services/java/com/android/server/WindowManagerService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java index 11b6310f1c29..dd4aeabfbf0c 100644 --- a/services/java/com/android/server/WindowManagerService.java +++ b/services/java/com/android/server/WindowManagerService.java @@ -8760,7 +8760,8 @@ public class WindowManagerService extends IWindowManager.Stub WindowState win = allAppWindows.get(i); if (win == startingWindow || win.mAppFreezing || win.mViewVisibility != View.VISIBLE - || win.mAttrs.type == TYPE_APPLICATION_STARTING) { + || win.mAttrs.type == TYPE_APPLICATION_STARTING + || win.mDestroying) { continue; } if (DEBUG_VISIBILITY) { -- cgit v1.2.3-59-g8ed1b