diff options
author | Yorke Lee <yorkelee@google.com> | 2013-08-20 14:22:14 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-08-20 14:22:14 -0700 |
commit | c46d10f8f811245bc7f20bc911971d0659fa148e (patch) | |
tree | 34ade369c7dac93b92e0a1abda4996b55185afee | |
parent | 8a3da458188452f04db6a4993e7a1b8337a8e7f7 (diff) | |
parent | 5a2b4fc13e66c22d4eb7dfd1c686651cf8b29965 (diff) |
am 5a2b4fc1: am 976fdef2: Allow dropping onto the top row of tiled favorites
* commit '5a2b4fc13e66c22d4eb7dfd1c686651cf8b29965':
Allow dropping onto the top row of tiled favorites
-rw-r--r-- | src/com/android/dialer/list/PhoneFavoriteDragAndDropListeners.java | 6 |
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)); } |