Skip to content

Commit 80059d6

Browse files
Craig MautnerAndroid Git Automerger
authored andcommitted
am 00b9e89: Merge "Clear startingDisplayed flag when removing window." into jb-dev
* commit '00b9e899320488ff5623d8c80258ed7dfefc7b53': Clear startingDisplayed flag when removing window.
2 parents e102b81 + 00b9e89 commit 80059d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2291,6 +2291,8 @@ public int addWindow(Session session, IWindow client, int seq,
22912291
if (attrs.type == TYPE_APPLICATION_STARTING &&
22922292
token.appWindowToken != null) {
22932293
token.appWindowToken.startingWindow = win;
2294+
if (DEBUG_STARTING_WINDOW) Slog.v (TAG, "addWindow: " + token.appWindowToken
2295+
+ " startingWindow=" + win);
22942296
}
22952297

22962298
boolean imMayMove = true;
@@ -2514,10 +2516,12 @@ private void removeWindowInnerLocked(Session session, WindowState win) {
25142516

25152517
if (atoken != null) {
25162518
if (atoken.startingWindow == win) {
2519+
if (DEBUG_STARTING_WINDOW) Slog.v(TAG, "Nulling startingWindow " + win);
25172520
atoken.startingWindow = null;
25182521
} else if (atoken.allAppWindows.size() == 0 && atoken.startingData != null) {
25192522
// If this is the last window and we had requested a starting
25202523
// transition window, well there is no point now.
2524+
if (DEBUG_STARTING_WINDOW) Slog.v(TAG, "Nulling last startingWindow");
25212525
atoken.startingData = null;
25222526
} else if (atoken.allAppWindows.size() == 1 && atoken.startingView != null) {
25232527
// If this is the last window except for a starting transition
@@ -7038,6 +7042,7 @@ public void handleMessage(Message msg) {
70387042
wtoken.startingData = null;
70397043
wtoken.startingView = null;
70407044
wtoken.startingWindow = null;
7045+
wtoken.startingDisplayed = false;
70417046
}
70427047
}
70437048
if (view != null) {
@@ -7074,6 +7079,7 @@ public void handleMessage(Message msg) {
70747079
wtoken.startingData = null;
70757080
wtoken.startingView = null;
70767081
wtoken.startingWindow = null;
7082+
wtoken.startingDisplayed = false;
70777083
}
70787084

70797085
try {

0 commit comments

Comments
 (0)