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

Commit a303a64a authored by Selim Cinek's avatar Selim Cinek
Browse files

Ensuring that headsups go away when unpinning via active edge

The headsup would still remain on screen when unpinning since
it was never considered.

Change-Id: Iad26b9207d5a797743809e975a8061a835b91903
Fixes: 74087419
Test: squezze the phone while HUN is displaying
parent db0e4f1d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2352,6 +2352,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