summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-08-22 08:49:49 -0700
committerYorke Lee <yorkelee@google.com>2013-08-22 17:35:16 -0700
commit1d6394b58547e52e1047d64bbde0af6426a26f6b (patch)
tree0b1d1e4f769bf262353ee15629c8de1e6b1f21f5
parent660cc3b8600863d576790648b695be22a58ea8b5 (diff)
Prevent swiped view from being recycled
Bug: 10257340 Change-Id: I5864a93e2ee64048fb6309c2ca2870cfea58fcce
-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);