OSDN Git Service

Fixing icon left on the workspace when drag operation fails
authorSunny Goyal <sunnygoyal@google.com>
Mon, 17 Apr 2017 21:18:55 +0000 (14:18 -0700)
committerSunny Goyal <sunnygoyal@google.com>
Mon, 17 Apr 2017 21:19:23 +0000 (14:19 -0700)
Bug: 37294517
Change-Id: I1982b71cdeacff9e15bfa00c03620888c2a225c8

src/com/android/launcher3/dragndrop/PinItemDragListener.java

index 4b402f4..df0c47c 100644 (file)
@@ -236,6 +236,10 @@ public class PinItemDragListener
             mLauncher.exitSpringLoadedDragModeDelayed(true,
                     Launcher.EXIT_SPRINGLOADED_MODE_SHORT_TIMEOUT, null);
         }
+
+        if (!success) {
+            d.deferDragViewCleanupPostAnimation = false;
+        }
         postCleanup();
     }