Merge "Sync client visibility if activity is stopped" into sc-dev am: be851a2ae3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15258890 Change-Id: I2985deab7580f358eb469a810b9049dfd37c5908
This commit is contained in:
@@ -5029,6 +5029,10 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
|||||||
// 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);
|
mDisplayContent.mUnknownAppVisibilityController.appRemovedOrHidden(this);
|
||||||
|
if (isClientVisible()) {
|
||||||
|
// Though this is usually unlikely to happen, still make sure the client is invisible.
|
||||||
|
setClientVisible(false);
|
||||||
|
}
|
||||||
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();
|
||||||
|
|||||||
Reference in New Issue
Block a user