diff options
author | Adam Cohen <adamcohen@google.com> | 2011-08-02 22:14:07 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2011-08-02 22:26:50 -0700 |
commit | 9932a9b1e66fed4b5f38ce50f13d56331bbdcd7e (patch) | |
tree | 2be4b796b369af0dd4dc6770d19d299faf68a0e9 /src/com/android/launcher2/DragController.java | |
parent | b2cdfb5f86bcf3e97598f9dd88415980d5a51f84 (diff) | |
download | packages_apps_trebuchet-9932a9b1e66fed4b5f38ce50f13d56331bbdcd7e.zip packages_apps_trebuchet-9932a9b1e66fed4b5f38ce50f13d56331bbdcd7e.tar.gz packages_apps_trebuchet-9932a9b1e66fed4b5f38ce50f13d56331bbdcd7e.tar.bz2 |
Fixing weird deferred click events after deleting folder
-> Fixing issue 5055487
Change-Id: I932f95f29322fa50035b13063ab51fad2d2217e8
Diffstat (limited to 'src/com/android/launcher2/DragController.java')
-rw-r--r-- | src/com/android/launcher2/DragController.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/launcher2/DragController.java b/src/com/android/launcher2/DragController.java index 28c53d1..647a425 100644 --- a/src/com/android/launcher2/DragController.java +++ b/src/com/android/launcher2/DragController.java @@ -31,6 +31,7 @@ import android.view.ViewConfiguration; import android.view.inputmethod.InputMethodManager; import com.android.launcher.R; +import com.android.launcher2.DropTarget.DragObject; import java.util.ArrayList; @@ -81,7 +82,7 @@ public class DragController { */ private int mScrollZone; - private DropTarget.DragObject mDragObject = new DropTarget.DragObject(); + private DropTarget.DragObject mDragObject; /** Who can receive drop events */ private ArrayList<DropTarget> mDropTargets = new ArrayList<DropTarget>(); @@ -275,6 +276,8 @@ public class DragController { mDragging = true; + mDragObject = new DropTarget.DragObject(); + mDragObject.dragComplete = false; mDragObject.xOffset = mMotionDownX - (dragLayerX + dragRegionLeft); mDragObject.yOffset = mMotionDownY - (dragLayerY + dragRegionTop); |