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

Commit babe5301 authored by Robin Lee's avatar Robin Lee Committed by Android (Google) Code Review
Browse files

Merge "Send occluded update for apps dismissing keyguard" into main

parents 391624d5 c4f53521
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -771,20 +771,21 @@ class KeyguardController {
                mTopTurnScreenOnActivity.setCurrentLaunchCanTurnScreenOn(false);
            }

            boolean hasChange = false;
            if (!lastKeyguardGoingAway && mKeyguardGoingAway) {
            final boolean startedGoingAway = (!lastKeyguardGoingAway && mKeyguardGoingAway);
            final boolean occludedChanged = (lastOccluded != mOccluded);

            if (startedGoingAway) {
                writeEventLog("dismissIfInsecure");
                controller.handleDismissInsecureKeyguard(display);
                controller.scheduleGoingAwayTimeout(mDisplayId);
                hasChange = true;
            } else if (lastOccluded != mOccluded) {
            }
            if (occludedChanged && (reduceKeyguardTransitions() || !startedGoingAway)) {
                controller.handleOccludedChanged(mDisplayId, mTopOccludesActivity);
                hasChange = true;
            }

            // Collect the participants for shell transition, so that transition won't happen too
            // early since the transition was set ready.
            if (hasChange && top != null && (mOccluded || mKeyguardGoingAway)) {
            if (top != null && (startedGoingAway || (occludedChanged && mOccluded))) {
                display.mTransitionController.collect(top);
            }
        }