Fixing animation bug when moving an icon to an adjacent screen
Change-Id: I42eed5240bb23689285da8afdd37a1228e4cc486
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java
index 0624d74..d8c8645 100644
--- a/src/com/android/launcher2/Workspace.java
+++ b/src/com/android/launcher2/Workspace.java
@@ -2313,8 +2313,9 @@
animateWidgetDrop(info, parent, d.dragView,
onCompleteRunnable, animationType, cell, false);
} else {
- mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, cell,
- onCompleteRunnable);
+ int duration = snapScreen < 0 ? -1 : ADJACENT_SCREEN_DROP_DURATION;
+ mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, cell, duration,
+ onCompleteRunnable, this);
}
} else {
d.deferDragViewCleanupPostAnimation = false;