Fixing animation bug when moving an icon to an adjacent screen

Change-Id: I42eed5240bb23689285da8afdd37a1228e4cc486
This commit is contained in:
Adam Cohen committed 2012-02-29 15:38:46 -08:00
1 parent ca83eeb091
commit 85b467bf3f
1 file changed
+3 -2
+3 -2
View File
@@ -2313,8 +2313,9 @@ public class Workspace extends SmoothPagedView
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;