Merge "Sync client visibility if activity is stopped" into sc-dev

This commit is contained in:
Riddle Hsu
2021-07-12 15:17:18 +00:00
committed by Android (Google) Code Review

View File

@@ -5029,6 +5029,10 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
// Reset the last saved PiP snap fraction on app stop.
mDisplayContent.mPinnedTaskController.onActivityHidden(mActivityComponent);
mDisplayContent.mUnknownAppVisibilityController.appRemovedOrHidden(this);
if (isClientVisible()) {
// Though this is usually unlikely to happen, still make sure the client is invisible.
setClientVisible(false);
}
destroySurfaces();
// Remove any starting window that was added for this app if they are still around.
removeStartingWindow();