summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-08-20 13:30:38 -0700
committerYorke Lee <yorkelee@google.com>2013-08-20 13:31:00 -0700
commit976fdef22ebe17e7ed57e48dbdd086e61e3a0109 (patch)
tree34ade369c7dac93b92e0a1abda4996b55185afee
parent68f2326059c3d2b7d45810ecc4207d837e4b4c3d (diff)
Allow dropping onto the top row of tiled favorites
Bug: 10411302 Change-Id: Ieed961ff4743d6dbf2354b51e9f0b61d16dfd2b5
-rw-r--r--src/com/android/dialer/list/PhoneFavoriteDragAndDropListeners.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/dialer/list/PhoneFavoriteDragAndDropListeners.java b/src/com/android/dialer/list/PhoneFavoriteDragAndDropListeners.java
index dfc3c39ca..a976ead8c 100644
--- a/src/com/android/dialer/list/PhoneFavoriteDragAndDropListeners.java
+++ b/src/com/android/dialer/list/PhoneFavoriteDragAndDropListeners.java
@@ -58,7 +58,6 @@ public class PhoneFavoriteDragAndDropListeners {
case DragEvent.ACTION_DRAG_STARTED:
if (mTileAdapter != null && mContactTileRow != null
&& !mTileAdapter.getInDragging()) {
- // Gets the current drag location with respect to the whole Dialer view.
mX = event.getX();
mY = event.getY();
if (DEBUG) {
@@ -93,9 +92,8 @@ public class PhoneFavoriteDragAndDropListeners {
case DragEvent.ACTION_DRAG_EXITED:
break;
case DragEvent.ACTION_DROP:
- // Gets the location of the drag with respect to the whole Dialer view.
- mX = event.getX() + v.getLeft();
- mY = event.getY() + v.getTop();
+ mX = event.getX();
+ mY = event.getY();
if (DEBUG) {
Log.v(TAG, String.valueOf(mX) + "; " + String.valueOf(mY));
}