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

Commit b2a87290 authored by Adrian Roos's avatar Adrian Roos
Browse files

AOD: show AOD1 instead of AOD2 on double tap

Bug: 30876804
Test: Have a notification showing, turn off screen, double-tap to Ambient Display, observe that device shows only the time and notification icon, not the expanded notification
Change-Id: Ic9b9fc392b67b0411588c1287cdf61ca2397990d
parent f49f3482
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -72,6 +72,9 @@ public class VisualStabilityManager implements OnHeadsUpChangedListener {
     * @param pulsing whether we are currently pulsing for ambient display.
     */
    public void setPulsing(boolean pulsing) {
        if (mPulsing == pulsing) {
            return;
        }
        mPulsing = pulsing;
        updateReorderingAllowed();
    }
+6 −2
Original line number Diff line number Diff line
@@ -5005,9 +5005,13 @@ public class StatusBar extends SystemUI implements DemoMode,
                @Override
                public void onPulseStarted() {
                    callback.onPulseStarted();
                    if (!mHeadsUpManager.getAllEntries().isEmpty()) {
                        // Only pulse the stack scroller if there's actually something to show.
                        // Otherwise just show the always-on screen.
                        mStackScroller.setPulsing(true);
                        mVisualStabilityManager.setPulsing(true);
                    }
                }

                @Override
                public void onPulseFinished() {
+3 −0
Original line number Diff line number Diff line
@@ -4026,6 +4026,9 @@ public class NotificationStackScrollLayout extends ViewGroup
    }

    public void setPulsing(boolean pulsing) {
        if (mPulsing == pulsing) {
            return;
        }
        mPulsing = pulsing;
        updateNotificationAnimationStates();
        updateContentHeight();