Skip to content

Commit 4b5aa78

Browse files
author
Craig Mautner
committed
Delay setting hidden until after isVisibleNow test.
Setting hidden prior to test guarantees the test will fail. This then causes the exit animation to not be loaded and consequently the window is immediately hidden. Then, when the window is removed later it reappears in order to animate away. The consequent flash is undesirable. Bug: 7242373 fixed. Change-Id: I56966bd9060124be372702090f86b29b4deea8c0
1 parent 09f090b commit 4b5aa78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3639,8 +3639,6 @@ public void removeWindowToken(IBinder token) {
36393639
if (wtoken != null) {
36403640
boolean delayed = false;
36413641
if (!wtoken.hidden) {
3642-
wtoken.hidden = true;
3643-
36443642
final int N = wtoken.windows.size();
36453643
boolean changed = false;
36463644

@@ -3661,6 +3659,8 @@ public void removeWindowToken(IBinder token) {
36613659
}
36623660
}
36633661

3662+
wtoken.hidden = true;
3663+
36643664
if (changed) {
36653665
performLayoutAndPlaceSurfacesLocked();
36663666
updateFocusedWindowLocked(UPDATE_FOCUS_NORMAL,

0 commit comments

Comments
 (0)