Skip to content

Commit 3935770

Browse files
Ulf RosdahlJohan Redestig
authored andcommitted
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
1 parent 7d9c73f commit 3935770

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8760,7 +8760,8 @@ void updateReportedVisibilityLocked() {
87608760
WindowState win = allAppWindows.get(i);
87618761
if (win == startingWindow || win.mAppFreezing
87628762
|| win.mViewVisibility != View.VISIBLE
8763-
|| win.mAttrs.type == TYPE_APPLICATION_STARTING) {
8763+
|| win.mAttrs.type == TYPE_APPLICATION_STARTING
8764+
|| win.mDestroying) {
87648765
continue;
87658766
}
87668767
if (DEBUG_VISIBILITY) {

0 commit comments

Comments
 (0)