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

Commit 79a7dc57 authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Automerger Merge Worker
Browse files

Merge "Remove activity from unknown app if starting window is relayouted."...

Merge "Remove activity from unknown app if starting window is relayouted." into sc-dev am: cfde5c2b

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

Change-Id: I055fb2a636d7dbc3076b3ebd491d980e22452a12
parents 36e53f9f cfde5c2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -133,7 +133,7 @@ class UnknownAppVisibilityController {
            Slog.d(TAG, "App relayouted appWindow=" + activity);
            Slog.d(TAG, "App relayouted appWindow=" + activity);
        }
        }
        int state = mUnknownApps.get(activity);
        int state = mUnknownApps.get(activity);
        if (state == UNKNOWN_STATE_WAITING_RELAYOUT) {
        if (state == UNKNOWN_STATE_WAITING_RELAYOUT || activity.mStartingWindow != null) {
            mUnknownApps.put(activity, UNKNOWN_STATE_WAITING_VISIBILITY_UPDATE);
            mUnknownApps.put(activity, UNKNOWN_STATE_WAITING_VISIBILITY_UPDATE);
            mService.notifyKeyguardFlagsChanged(this::notifyVisibilitiesUpdated,
            mService.notifyKeyguardFlagsChanged(this::notifyVisibilitiesUpdated,
                    activity.getDisplayContent().getDisplayId());
                    activity.getDisplayContent().getDisplayId());