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

Commit b6b7b5b4 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Reset swipe state on children rows, too.

Fixes: 288809971
Test: repro with b/288404864 and close shade
Change-Id: Ia802e1ef323245f0fa040f30abeaf026d7811f48
parent 14b406e2
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -5919,7 +5919,17 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
        Trace.beginSection("NSSL.resetAllSwipeState()");
        mSwipeHelper.resetTouchState();
        for (int i = 0; i < getChildCount(); i++) {
            mSwipeHelper.forceResetSwipeState(getChildAt(i));
            View child = getChildAt(i);
            mSwipeHelper.forceResetSwipeState(child);
            if (child instanceof ExpandableNotificationRow) {
                ExpandableNotificationRow childRow = (ExpandableNotificationRow) child;
                List<ExpandableNotificationRow> grandchildren = childRow.getAttachedChildren();
                if (grandchildren != null) {
                    for (ExpandableNotificationRow grandchild : grandchildren) {
                        mSwipeHelper.forceResetSwipeState(grandchild);
                    }
                }
            }
        }
        updateContinuousShadowDrawing();
        Trace.endSection();