Mark activity window as invisible with window manager when it's
destroyed normally, to differentiate with the case where the app
crashed while visible.
bug:
25671369
Change-Id: I26d8df6b7e08fc5b65cd2c7aa432a3c5c8c5c7b3
// If the activity is PAUSING, we will complete the finish once
// it is done pausing; else we can just directly finish it here.
if (DEBUG_PAUSE) Slog.v(TAG_PAUSE, "Finish not pausing: " + r);
+ if (r.visible) {
+ mWindowManager.setAppVisibility(r.appToken, false);
+ }
return finishCurrentActivityLocked(r, FINISH_AFTER_PAUSE, oomAdj) == null;
} else {
if (DEBUG_PAUSE) Slog.v(TAG_PAUSE, "Finish waiting for pause of: " + r);