Merge "Fixing animation bug when moving an icon to an adjacent screen"

This commit is contained in:
Adam Cohen authored and Android (Google) Code Review committed 2012-03-02 11:16:16 -08:00
commit 7f1435c303
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;