Skip to content

Commit c11b19c

Browse files
author
Winson Chung
committed
Fixing an issue with leaking starting windows. (Bug 17657878)
In some cases, when starting an animation while another starting window is visible, the starting window is never scheduled to be removed. In that case, we try and schedule the closing app starting window to be removed when we are starting the transition to a new activity. This also partially addresses issues related to leaking windows in b/17381033. Change-Id: Id26525cd71380852f109ec2f55a4a60db5086ded
1 parent 51a400e commit c11b19c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9093,6 +9093,11 @@ public int handleAppTransitionReadyLocked(WindowList windows) {
90939093
// gotten drawn.
90949094
wtoken.allDrawn = true;
90959095
wtoken.deferClearAllDrawn = false;
9096+
// Ensure that apps that are mid-starting are also scheduled to have their
9097+
// starting windows removed after the animation is complete
9098+
if (wtoken.startingWindow != null && !wtoken.startingWindow.mExiting) {
9099+
scheduleRemoveStartingWindow(wtoken);
9100+
}
90969101

90979102
if (animLp != null) {
90989103
int layer = -1;

0 commit comments

Comments
 (0)