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

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

Merge "Fix issue where notifications should not animate" into qt-dev

parents b649ff34 9dfca59f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -3639,6 +3639,7 @@ public class StatusBar extends SystemUI implements DemoMode,

        @Override
        public void onStartedGoingToSleep() {
            updateNotificationPanelTouchState();
            notifyHeadsUpGoingToSleep();
            dismissVolumeDialog();
        }
@@ -3671,7 +3672,10 @@ public class StatusBar extends SystemUI implements DemoMode,
     * Keyguard.
     */
    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() {