OSDN Git Service

Animate icons back to where they were picked up.
authorTony Wickham <twickham@google.com>
Wed, 5 Oct 2016 16:05:42 +0000 (09:05 -0700)
committerTony Wickham <twickham@google.com>
Wed, 2 Nov 2016 22:07:57 +0000 (15:07 -0700)
commitea62fe0be19c54f8fbb434c6334418b96626f70d
treef9d9c9794f37f8f60e9eb8c1f6ee79e4bb53a005
parentdf3bc52ca9c4271398d35b17cf550ca9099b8249
Animate icons back to where they were picked up.

We do this for pre-dragged icons instead of calling onDrop().
- Removes need for special logic in onDrop() to check if mIsInPreDrag
- Dropping from pre-drag in all apps also animates instead of jumping

We also do this when dropping an icon while still transitioning
to spring-loaded mode, to avoid having a janky jump at the end
- Bug: 27135377

Change-Id: I4548c3e2fef3423d1ba36057fb53807b1b4ad0fc
src/com/android/launcher3/Workspace.java
src/com/android/launcher3/dragndrop/DragController.java
src/com/android/launcher3/dragndrop/DragView.java
src/com/android/launcher3/folder/Folder.java