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

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

Clear mTouchedView when a snap-back animation ends

Bug: 259529672
Test: dumpsysui SwipeHelper
Change-Id: Iff38e3721a4abfa613974e6df32cb178c3a73fb9
parent af1f8eea
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -548,6 +548,10 @@ public class SwipeHelper implements Gefingerpoken, Dumpable {
            if (!cancelled) {
                updateSwipeProgressFromOffset(animView, canBeDismissed);
                resetSwipeOfView(animView);
                // Clear the snapped view after success, assuming it's not being swiped now
                if (animView == mTouchedView && !mIsSwiping) {
                    mTouchedView = null;
                }
            }
            onChildSnappedBack(animView, targetLeft);
        });