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
diff --git a/src/com/android/dialer/list/SwipeHelper.java b/src/com/android/dialer/list/SwipeHelper.java
index f493c9d..1521714 100644
--- a/src/com/android/dialer/list/SwipeHelper.java
+++ b/src/com/android/dialer/list/SwipeHelper.java
@@ -270,7 +270,7 @@
anim.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
- mCallback.onChildDismissed(mCurrView);
+ mCallback.onChildDismissed(view);
animView.setLayerType(View.LAYER_TYPE_NONE, null);
}
});