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

Commit 1af5e7f2 authored by d34d's avatar d34d
Browse files

SysUI: Show hints if showing keyguard and provisioned

Change-Id: Ifd8923e7eabc7b8fd9186dbf757272dec3a1a8b1
TICKET: NIGHTLIES-3199 NIGHTLIES-3202 NIGHTLIES-3204
parent 2c050b3f
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -2629,10 +2629,12 @@ public class NotificationPanelView extends PanelView implements

    public void onScreenTurningOn() {
        mKeyguardStatusView.refreshTime();
        if (shouldShowScreenOnHints()) {
            startScreenOnHintAnimation(mLiveLockscreenController.isLiveLockScreenInteractive() &&
                            !mUserInteractedWithLiveLockScreen,
                    !mUserUnlocked, !mUserExpandedNotifications);
        }
    }

    @Override
    public void onEmptySpaceClicked(float x, float y) {
@@ -3065,4 +3067,8 @@ public class NotificationPanelView extends PanelView implements
    private boolean getUserReturnedFromLls() {
        return getSharedPreferenceBoolean(KEY_USER_RETURNED_FROM_LLS, false);
    }

    private boolean shouldShowScreenOnHints() {
        return mStatusBar.isDeviceProvisioned() && mStatusBarState == StatusBarState.KEYGUARD;
    }
}