diff options
author | Yorke Lee <yorkelee@google.com> | 2013-08-23 16:48:25 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-08-23 16:48:25 -0700 |
commit | 3686e68c873ffc83e086797abed6c883185737f2 (patch) | |
tree | 0cea625810992a6209c7fe9362f02b356e0c7fd8 | |
parent | 0294816692f17f10ec1a76ff780b0e32416e70fc (diff) |
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
-rw-r--r-- | src/com/android/dialer/list/SwipeHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); } }); |