From 3686e68c873ffc83e086797abed6c883185737f2 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 23 Aug 2013 16:48:25 -0700 Subject: Fix bug in SwipeHelper If a child is swiped and then a scroll happens immediately after while the swipe animation is still occurring, the onChildDismissed callback happens on the newly scrolled view, not the originally swiped one. Bug: 10257340 Change-Id: I7e030cee155f4ead5479b1c31069d8cf78659d46 --- src/com/android/dialer/list/SwipeHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/dialer/list/SwipeHelper.java b/src/com/android/dialer/list/SwipeHelper.java index f493c9dbb..152171432 100644 --- a/src/com/android/dialer/list/SwipeHelper.java +++ b/src/com/android/dialer/list/SwipeHelper.java @@ -270,7 +270,7 @@ public class SwipeHelper { anim.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { - mCallback.onChildDismissed(mCurrView); + mCallback.onChildDismissed(view); animView.setLayerType(View.LAYER_TYPE_NONE, null); } }); -- cgit v1.2.3