summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-08-12 22:45:33 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-12 22:45:34 +0000
commit13eeaa6f94d80dbde9cbbcb5c5975064174dba89 (patch)
tree538cf87eb7b9e7dceafcc07a0b9e1e3cc94bd662
parent598e9a685606fa18c49defca69ee9521eb4ed473 (diff)
parent0719f0c70e7c4093f934e059bb02f2a276c245a0 (diff)
Merge "Fix wrong contact being hidden from favorites" into klp-dev
-rw-r--r--src/com/android/dialer/list/PhoneFavoriteDragAndDropListeners.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/dialer/list/PhoneFavoriteDragAndDropListeners.java b/src/com/android/dialer/list/PhoneFavoriteDragAndDropListeners.java
index ac089c76f..034dc0ab2 100644
--- a/src/com/android/dialer/list/PhoneFavoriteDragAndDropListeners.java
+++ b/src/com/android/dialer/list/PhoneFavoriteDragAndDropListeners.java
@@ -90,7 +90,9 @@ public class PhoneFavoriteDragAndDropListeners {
Math.abs(x2 - x1) > mFlingHorizontalThreshold &&
Math.abs(velocityX) > FLING_VELOCITY_MINIMUM) {
// If fling is triggered successfully, end the scroll and setup removal dialogue.
- final int removeIndex = mView.getParentRow().getItemIndex(x1, y1);
+
+ final int removeIndex = mView.getParentRow().getItemIndex(mView.getLeft() + x1,
+ mView.getTop() + y1);
mView.setScrollEnd(false);
mView.setupRemoveDialogue();
mView.getParentRow().getTileAdapter().setPotentialRemoveEntryIndex(removeIndex);