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

Commit 3649f735 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge changes from topic "presubmit-am-cd23d9b2a39243fd926bc7a009462de9" into sc-v2-dev-plus-aosp

* changes:
  [automerge] [DO NOT MERGE] Keyguard was hiding occluding activities 2p: 267ecd15
  [DO NOT MERGE] Keyguard was hiding occluding activities
parents f0454c19 5ea88117
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2937,8 +2937,9 @@ public class StatusBar extends SystemUI implements
        // turned off fully.
        boolean keyguardForDozing = mDozeServiceHost.getDozingRequested()
                && (!mDeviceInteractive || isGoingToSleep() && (isScreenFullyOff() || mIsKeyguard));
        boolean isWakingAndOccluded = isOccluded() && isWaking();
        boolean shouldBeKeyguard = (mStatusBarStateController.isKeyguardRequested()
                || keyguardForDozing) && !wakeAndUnlocking;
                || keyguardForDozing) && !wakeAndUnlocking && !isWakingAndOccluded;
        if (keyguardForDozing) {
            updatePanelExpansionForKeyguard();
        }
@@ -3716,6 +3717,10 @@ public class StatusBar extends SystemUI implements
                == WakefulnessLifecycle.WAKEFULNESS_GOING_TO_SLEEP;
    }

    boolean isWaking() {
        return mWakefulnessLifecycle.getWakefulness() == WakefulnessLifecycle.WAKEFULNESS_WAKING;
    }

    public void notifyBiometricAuthModeChanged() {
        mDozeServiceHost.updateDozing();
        updateScrimController();