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 c04ca83300cd5..80e966386e2a8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -1738,6 +1738,10 @@ public class NotificationPanelView extends PanelView implements updateKeyguardStatusBarVisibility(); } + public boolean isDozing() { + return mDozing; + } + private static void setBackgroundColorAlpha(final View target, int rgb, int targetAlpha, boolean animate) { int currentAlpha = getBackgroundAlpha(target); diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index 9d77331296d04..90f9cdd772bc6 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -3641,7 +3641,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } private void updateDozingState() { - if (mState != StatusBarState.KEYGUARD) { + if (mState != StatusBarState.KEYGUARD && !mNotificationPanel.isDozing()) { return; } mNotificationPanel.setDozing(mDozing);