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

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

Merge \"Fixed the heads up disspearing bug for real\" into nyc-mr1-dev

am: 70b06cc6

Change-Id: I4f800199c871b862eefd1d813e8ed04f9485d7da
parents 21558d12 70b06cc6
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -2654,6 +2654,10 @@ public class NotificationStackScrollLayout extends ViewGroup
                type = row.wasJustClicked()
                        ? AnimationEvent.ANIMATION_TYPE_HEADS_UP_DISAPPEAR_CLICK
                        : AnimationEvent.ANIMATION_TYPE_HEADS_UP_DISAPPEAR;
                if (row.isChildInGroup()) {
                    // We can otherwise get stuck in there if it was just isolated
                    row.setHeadsupDisappearRunning(false);
                }
            } else {
                StackViewState viewState = mCurrentStackScrollState.getViewStateForView(row);
                if (viewState == null) {
@@ -3150,7 +3154,13 @@ public class NotificationStackScrollLayout extends ViewGroup
        for (int i = 0; i < getChildCount(); i++) {
            View view = getChildAt(i);
            if (view instanceof ExpandableNotificationRow) {
                ((ExpandableNotificationRow) view).setHeadsupDisappearRunning(false);
                ExpandableNotificationRow row = (ExpandableNotificationRow) view;
                row.setHeadsupDisappearRunning(false);
                if (row.isSummaryWithChildren()) {
                    for (ExpandableNotificationRow child : row.getNotificationChildren()) {
                        child.setHeadsupDisappearRunning(false);
                    }
                }
            }
        }
    }