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

Commit bc64c0d5 authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Ensuring that headsups go away when unpinning via active edge" into pi-dev

am: 6ece0f3f

Change-Id: I0e77a746106a975bf75cf7e3a932e5925ae9d30b
parents 7f4cea85 6ece0f3f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2360,6 +2360,14 @@ public class NotificationPanelView extends PanelView implements

    @Override
    public void onHeadsUpUnPinned(ExpandableNotificationRow headsUp) {

        // When we're unpinning the notification via active edge they remain heads-upped,
        // we need to make sure that an animation happens in this case, otherwise the notification
        // will stick to the top without any interaction.
        if (isFullyCollapsed() && headsUp.isHeadsUp()) {
            mNotificationStackScroller.generateHeadsUpAnimation(headsUp, false);
            headsUp.setHeadsUpIsVisible();
        }
    }

    @Override