Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +5 −1 Original line number Original line Diff line number Diff line Loading @@ -3639,6 +3639,7 @@ public class StatusBar extends SystemUI implements DemoMode, @Override @Override public void onStartedGoingToSleep() { public void onStartedGoingToSleep() { updateNotificationPanelTouchState(); notifyHeadsUpGoingToSleep(); notifyHeadsUpGoingToSleep(); dismissVolumeDialog(); dismissVolumeDialog(); } } Loading Loading @@ -3671,7 +3672,10 @@ public class StatusBar extends SystemUI implements DemoMode, * Keyguard. * Keyguard. */ */ private void updateNotificationPanelTouchState() { private void updateNotificationPanelTouchState() { mNotificationPanel.setTouchAndAnimationDisabled(!mDeviceInteractive && !mPulsing); boolean goingToSleepWithoutAnimation = isGoingToSleep() && !DozeParameters.getInstance(mContext).shouldControlScreenOff(); mNotificationPanel.setTouchAndAnimationDisabled((!mDeviceInteractive && !mPulsing) || goingToSleepWithoutAnimation); } } final ScreenLifecycle.Observer mScreenObserver = new ScreenLifecycle.Observer() { final ScreenLifecycle.Observer mScreenObserver = new ScreenLifecycle.Observer() { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +5 −1 Original line number Original line Diff line number Diff line Loading @@ -3639,6 +3639,7 @@ public class StatusBar extends SystemUI implements DemoMode, @Override @Override public void onStartedGoingToSleep() { public void onStartedGoingToSleep() { updateNotificationPanelTouchState(); notifyHeadsUpGoingToSleep(); notifyHeadsUpGoingToSleep(); dismissVolumeDialog(); dismissVolumeDialog(); } } Loading Loading @@ -3671,7 +3672,10 @@ public class StatusBar extends SystemUI implements DemoMode, * Keyguard. * Keyguard. */ */ private void updateNotificationPanelTouchState() { private void updateNotificationPanelTouchState() { mNotificationPanel.setTouchAndAnimationDisabled(!mDeviceInteractive && !mPulsing); boolean goingToSleepWithoutAnimation = isGoingToSleep() && !DozeParameters.getInstance(mContext).shouldControlScreenOff(); mNotificationPanel.setTouchAndAnimationDisabled((!mDeviceInteractive && !mPulsing) || goingToSleepWithoutAnimation); } } final ScreenLifecycle.Observer mScreenObserver = new ScreenLifecycle.Observer() { final ScreenLifecycle.Observer mScreenObserver = new ScreenLifecycle.Observer() { Loading