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

Commit 20c56e7b authored by Louis Chang's avatar Louis Chang Committed by Android (Google) Code Review
Browse files

Merge "Prevents activity becomes invisible while keyguard going-away" into main

parents f949e8ff 491c2dbf
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -6079,9 +6079,10 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
            return false;
        }

        // Check if the activity is on a sleeping display, canTurnScreenOn will also check
        // keyguard visibility
        if (mDisplayContent.isSleeping()) {
        // Check if the activity is on a sleeping display and keyguard is not going away (to
        // align with TaskFragment#shouldSleepActivities), canTurnScreenOn will also check keyguard
        // visibility
        if (mDisplayContent.isSleeping() && !mDisplayContent.isKeyguardGoingAway()) {
            return canTurnScreenOn();
        } else {
            return mTaskSupervisor.getKeyguardController().checkKeyguardVisibility(this);