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

Commit 8fc78753 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where the headsup would be stuck disappearing

Change-Id: I56d6be69f6e59c1bec647e7e70e50a36b793f895
Fixes: 30120962
parent 06e9e1fe
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
@@ -2347,6 +2347,7 @@ public class NotificationStackScrollLayout extends ViewGroup
        if (hasAddEvent) {
        if (hasAddEvent) {
            // This child was just added lets remove all events.
            // This child was just added lets remove all events.
            mHeadsUpChangeAnimations.removeAll(mTmpList);
            mHeadsUpChangeAnimations.removeAll(mTmpList);
            ((ExpandableNotificationRow ) child).setHeadsupDisappearRunning(false);
        }
        }
        mTmpList.clear();
        mTmpList.clear();
        return hasAddEvent;
        return hasAddEvent;
@@ -3093,6 +3094,16 @@ public class NotificationStackScrollLayout extends ViewGroup
        requestChildrenUpdate();
        requestChildrenUpdate();
        runAnimationFinishedRunnables();
        runAnimationFinishedRunnables();
        clearViewOverlays();
        clearViewOverlays();
        clearHeadsUpDisappearRunning();
    }

    private void clearHeadsUpDisappearRunning() {
        for (int i = 0; i < getChildCount(); i++) {
            View view = getChildAt(i);
            if (view instanceof ExpandableNotificationRow) {
                ((ExpandableNotificationRow) view).setHeadsupDisappearRunning(false);
            }
        }
    }
    }


    private void clearViewOverlays() {
    private void clearViewOverlays() {