summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DragController.java
diff options
context:
space:
mode:
authorMindy DelliCarpini <mindyp@google.com>2013-07-03 21:31:15 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-07-03 21:31:15 +0000
commit70c987a0fea53583b22650bed6251e2dcc68bdac (patch)
treee7aac2d39a5411b4a72a3f02d3a89e797e3d5192 /src/com/android/launcher3/DragController.java
parentee0ce2b29f9cb06cc143c6f30ffc77f4915b0da9 (diff)
parent53b8d071ce63b2b55fa8bdc71488c44308bfcf2f (diff)
downloadandroid_packages_apps_Trebuchet-70c987a0fea53583b22650bed6251e2dcc68bdac.tar.gz
android_packages_apps_Trebuchet-70c987a0fea53583b22650bed6251e2dcc68bdac.tar.bz2
android_packages_apps_Trebuchet-70c987a0fea53583b22650bed6251e2dcc68bdac.zip
Merge "Use autoscroller to handle drag scrolling" into jb-ub-gel-agar
Diffstat (limited to 'src/com/android/launcher3/DragController.java')
-rw-r--r--src/com/android/launcher3/DragController.java7
1 files changed, 3 insertions, 4 deletions
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);