summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-08-23 10:38:25 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-08-23 10:38:25 -0700
commit38164b2b9ca1a0be265f81a5d69c007248b61b7d (patch)
tree0b1d1e4f769bf262353ee15629c8de1e6b1f21f5
parent0699c903f4e7cc5926c6618d7d57c2c945f3e2ef (diff)
parent8d470b7725c6e312aac4fa3be7a2fbd7115e0263 (diff)
am 8d470b77: am 1d6394b5: Prevent swiped view from being recycled
* commit '8d470b7725c6e312aac4fa3be7a2fbd7115e0263': Prevent swiped view from being recycled
-rw-r--r--src/com/android/dialer/list/SwipeableListView.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/dialer/list/SwipeableListView.java b/src/com/android/dialer/list/SwipeableListView.java
index 29c4f674b..8f50f4cd4 100644
--- a/src/com/android/dialer/list/SwipeableListView.java
+++ b/src/com/android/dialer/list/SwipeableListView.java
@@ -151,10 +151,14 @@ public class SwipeableListView extends ListView implements SwipeHelperCallback {
}
@Override
- public void onDragCancelled(View v) {}
+ public void onDragCancelled(View v) {
+ v.setHasTransientState(false);
+ }
@Override
public void onBeginDrag(View v) {
+ final View tileRow = (View) v.getParent();
+ tileRow.setHasTransientState(true);
// We do this so the underlying ScrollView knows that it won't get
// the chance to intercept events anymore
requestDisallowInterceptTouchEvent(true);