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

Commit 0090ea55 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where HUNs would not dissappear

Bug: 19626170
Change-Id: Iadc4bd6b2bfc85b3da67e1e87cf1514cfcb269bb
parent 547a06b5
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -162,11 +162,6 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper.
    public void updateNotification(NotificationData.Entry headsUp, boolean alert) {
        if (DEBUG) Log.v(TAG, "updateNotification");

        if (alert) {
            mBar.scheduleHeadsUpDecay(mHeadsUpNotificationDecay);
        }
        invalidate();

        if (mHeadsUp == headsUp) {
            resetViewForHeadsup();
            // This is an in-place update.  Noting more to do.
@@ -197,9 +192,11 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper.
            }

            mHeadsUp.setInterruption();

        }
        if (alert) {
            // Make sure the heads up window is open.
            mBar.scheduleHeadsUpOpen();
            mBar.scheduleHeadsUpDecay(mHeadsUpNotificationDecay);
        }
    }