From 53b8d071ce63b2b55fa8bdc71488c44308bfcf2f Mon Sep 17 00:00:00 2001 From: Mindy DelliCarpini Date: Wed, 3 Jul 2013 08:23:13 -0700 Subject: Use autoscroller to handle drag scrolling Change-Id: Ie094cbfa91f898133f84ad9ffc349d8cfa07e668 --- src/com/android/launcher3/DragController.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/com/android/launcher3/DragController.java') diff --git a/src/com/android/launcher3/DragController.java b/src/com/android/launcher3/DragController.java index 54f7dbc15..970ce2611 100644 --- a/src/com/android/launcher3/DragController.java +++ b/src/com/android/launcher3/DragController.java @@ -123,17 +123,16 @@ public class DragController { * Interface to receive notifications when a drag starts or stops */ interface DragListener { - /** * A drag has begun - * + * * @param source An object representing where the drag originated * @param info The data associated with the object that is being dragged * @param dragAction The drag action: either {@link DragController#DRAG_ACTION_MOVE} * or {@link DragController#DRAG_ACTION_COPY} */ void onDragStart(DragSource source, Object info, int dragAction); - + /** * The drag has ended */ @@ -514,7 +513,6 @@ public class DragController { if (delegate != null) { dropTarget = delegate; } - if (mLastDropTarget != dropTarget) { if (mLastDropTarget != null) { mLastDropTarget.onDragExit(mDragObject); @@ -589,6 +587,7 @@ public class DragController { } else { mScrollState = SCROLL_OUTSIDE_ZONE; } + handleMoveEvent(dragLayerX, dragLayerY); break; case MotionEvent.ACTION_MOVE: handleMoveEvent(dragLayerX, dragLayerY); -- cgit v1.2.3