summaryrefslogtreecommitdiffstats
path: root/services/java/com/android
diff options
context:
space:
mode:
authorUlf Rosdahl <ulf.rosdahl@sonyericsson.com>2010-09-29 12:34:38 +0200
committerSteve Kondik <shade@chemlab.org>2010-10-17 07:09:19 -0400
commit875d9afcd93d5e8136df550c7bf1bb746e75d182 (patch)
tree08e42b1ae48679d5f27a441524927bcef78415e9 /services/java/com/android
parentd89eb26a4a20fe32a14ecc5f257860d501aa76c3 (diff)
downloadframeworks_base-875d9afcd93d5e8136df550c7bf1bb746e75d182.zip
frameworks_base-875d9afcd93d5e8136df550c7bf1bb746e75d182.tar.gz
frameworks_base-875d9afcd93d5e8136df550c7bf1bb746e75d182.tar.bz2
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
Diffstat (limited to 'services/java/com/android')
-rw-r--r--services/java/com/android/server/WindowManagerService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java
index 83e2f51..c603f20 100644
--- a/services/java/com/android/server/WindowManagerService.java
+++ b/services/java/com/android/server/WindowManagerService.java
@@ -8795,7 +8795,9 @@ public class WindowManagerService extends IWindowManager.Stub
for (int i=0; i<N; i++) {
WindowState win = allAppWindows.get(i);
if (win == startingWindow || win.mAppFreezing
- || win.mViewVisibility != View.VISIBLE) {
+ || win.mViewVisibility != View.VISIBLE
+ || win.mAttrs.type == TYPE_APPLICATION_STARTING
+ || win.mDestroying) {
continue;
}
if (DEBUG_VISIBILITY) {