@@ -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