diff --git a/services/core/java/com/android/server/wm/ActivityRecord.java b/services/core/java/com/android/server/wm/ActivityRecord.java index 0ad8782cea4fc..dd545290c3774 100644 --- a/services/core/java/com/android/server/wm/ActivityRecord.java +++ b/services/core/java/com/android/server/wm/ActivityRecord.java @@ -5015,6 +5015,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A mAppStopped = true; // Reset the last saved PiP snap fraction on app stop. mDisplayContent.mPinnedTaskController.onActivityHidden(mActivityComponent); + mDisplayContent.mUnknownAppVisibilityController.appRemovedOrHidden(this); destroySurfaces(); // Remove any starting window that was added for this app if they are still around. removeStartingWindow();