commit | 846d7e12c86299c44580761c78ee3c4dc5ab6f71 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Mon Apr 17 14:18:55 2017 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Mon Apr 17 14:19:23 2017 -0700 |
tree | d334db6db68683c2a7ea3baf6efba8a97457fd65 | |
parent | 343a77e609382bcb9b1d69ea235a9e6d779b719e [diff] |
Fixing icon left on the workspace when drag operation fails Bug: 37294517 Change-Id: I1982b71cdeacff9e15bfa00c03620888c2a225c8
diff --git a/src/com/android/launcher3/dragndrop/PinItemDragListener.java b/src/com/android/launcher3/dragndrop/PinItemDragListener.java index 4b402f4..df0c47c 100644 --- a/src/com/android/launcher3/dragndrop/PinItemDragListener.java +++ b/src/com/android/launcher3/dragndrop/PinItemDragListener.java
@@ -236,6 +236,10 @@ mLauncher.exitSpringLoadedDragModeDelayed(true, Launcher.EXIT_SPRINGLOADED_MODE_SHORT_TIMEOUT, null); } + + if (!success) { + d.deferDragViewCleanupPostAnimation = false; + } postCleanup(); }