Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 976fdef2 authored by Yorke Lee's avatar Yorke Lee
Browse files

Allow dropping onto the top row of tiled favorites

Bug: 10411302
Change-Id: Ieed961ff4743d6dbf2354b51e9f0b61d16dfd2b5
parent 68f23260
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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));
                    }