Merge "Remove stopped activity from UnknownAppVisibilityController." into sc-dev

This commit is contained in:
Issei Suzuki
2021-06-30 16:24:37 +00:00
committed by Android (Google) Code Review

View File

@@ -5015,6 +5015,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
mAppStopped = true; mAppStopped = true;
// Reset the last saved PiP snap fraction on app stop. // Reset the last saved PiP snap fraction on app stop.
mDisplayContent.mPinnedTaskController.onActivityHidden(mActivityComponent); mDisplayContent.mPinnedTaskController.onActivityHidden(mActivityComponent);
mDisplayContent.mUnknownAppVisibilityController.appRemovedOrHidden(this);
destroySurfaces(); destroySurfaces();
// Remove any starting window that was added for this app if they are still around. // Remove any starting window that was added for this app if they are still around.
removeStartingWindow(); removeStartingWindow();