Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5c4fff7 authored by Riddle Hsu's avatar Riddle Hsu Committed by Automerger Merge Worker
Browse files

Merge "Sync client visibility if activity is stopped" into sc-dev am: be851a2a am: d57c3643

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15258890

Change-Id: Ic172551f5226a5646570a5b18cb344e149b3531e
parents 43a96b22 d57c3643
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5142,6 +5142,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();