mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Cleaning up some spring-loaded related dragging code. Allow cancel spring loaded mode.
Change-Id: Ie1f0468c563bed7abc1aa6416e222cdb0853c03a
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user