diff options
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index 6992379..736fd7d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -2629,9 +2629,11 @@ public class NotificationPanelView extends PanelView implements public void onScreenTurningOn() { mKeyguardStatusView.refreshTime(); - startScreenOnHintAnimation(mLiveLockscreenController.isLiveLockScreenInteractive() && - !mUserInteractedWithLiveLockScreen, - !mUserUnlocked, !mUserExpandedNotifications); + if (shouldShowScreenOnHints()) { + startScreenOnHintAnimation(mLiveLockscreenController.isLiveLockScreenInteractive() && + !mUserInteractedWithLiveLockScreen, + !mUserUnlocked, !mUserExpandedNotifications); + } } @Override @@ -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; + } } |