diff options
author | Winson Chung <winsonc@google.com> | 2011-07-01 15:35:26 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-07-06 20:48:45 -0700 |
commit | c07918d0053fc7d2a19d7b013565a5d2e7d4af51 (patch) | |
tree | 1fe589183691f04dcc6d2a280e283d49faa6f6e7 /src/com/android/launcher2/DragController.java | |
parent | d044526d82e7938cf35b296978d9d5302f98b4af (diff) | |
download | packages_apps_trebuchet-c07918d0053fc7d2a19d7b013565a5d2e7d4af51.zip packages_apps_trebuchet-c07918d0053fc7d2a19d7b013565a5d2e7d4af51.tar.gz packages_apps_trebuchet-c07918d0053fc7d2a19d7b013565a5d2e7d4af51.tar.bz2 |
Cleaning up some spring-loaded related dragging code. Allow cancel spring loaded mode.
Change-Id: Ie1f0468c563bed7abc1aa6416e222cdb0853c03a
Diffstat (limited to 'src/com/android/launcher2/DragController.java')
-rw-r--r-- | src/com/android/launcher2/DragController.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher2/DragController.java b/src/com/android/launcher2/DragController.java index ca72ce9..9a6335b 100644 --- a/src/com/android/launcher2/DragController.java +++ b/src/com/android/launcher2/DragController.java @@ -366,7 +366,9 @@ public class DragController { */ public void cancelDrag() { if (mDragging) { - // Should we also be calling onDragExit() here? + if (mLastDropTarget != null) { + mLastDropTarget.onDragExit(mDragObject); + } mDragObject.dragComplete = true; mDragObject.dragSource.onDropCompleted(null, mDragObject, false); } |