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

Commit be80dc88 authored by Lucas Dupin's avatar Lucas Dupin Committed by android-build-merger
Browse files

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

am: acd959e5

Change-Id: I9c600866904b1508e18ca782d04558497ec6fa14
parents c0939c46 acd959e5
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() {