From 976fdef22ebe17e7ed57e48dbdd086e61e3a0109 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 20 Aug 2013 13:30:38 -0700 Subject: Allow dropping onto the top row of tiled favorites Bug: 10411302 Change-Id: Ieed961ff4743d6dbf2354b51e9f0b61d16dfd2b5 --- src/com/android/dialer/list/PhoneFavoriteDragAndDropListeners.java | 6 ++---- 1 file 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)); } -- cgit v1.2.3