From b9d93ca31679a58e431ba5b0e8da9e1b8945ed53 Mon Sep 17 00:00:00 2001 From: Wale Ogunwale Date: Tue, 17 Oct 2017 08:12:08 -0700 Subject: [PATCH] setAllAppWinAnimators() for closing apps. This makes sure the app windows get onExitAnimationDone() call when the animation is done vs. when the activity is stopped which happens later. Bug: 64218925 Test: go/wm-smoke Change-Id: Ia3bd5efb0cc9713758f1b4ca4765b4bd5e19542d --- .../core/java/com/android/server/wm/WindowSurfacePlacer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/core/java/com/android/server/wm/WindowSurfacePlacer.java b/services/core/java/com/android/server/wm/WindowSurfacePlacer.java index af1fa2fe02918..fa33fe8fa92af 100644 --- a/services/core/java/com/android/server/wm/WindowSurfacePlacer.java +++ b/services/core/java/com/android/server/wm/WindowSurfacePlacer.java @@ -449,6 +449,9 @@ class WindowSurfacePlacer { // animating? wtoken.setVisibility(animLp, false, transit, false, voiceInteraction); wtoken.updateReportedVisibilityLocked(); + // setAllAppWinAnimators so the windows get onExitAnimationDone once the animation is + // done. + wtoken.setAllAppWinAnimators(); // Force the allDrawn flag, because we want to start // this guy's animations regardless of whether it's // gotten drawn.