Fixing subtle animation jank when dropping icon on adjacent page

-> The old path of the icon wasn't correct from a motion standpoint

Change-Id: Icb4b06b5cd5649e983d43953ff369d1d8d8cdee2
This commit is contained in:
Adam Cohen
2011-12-14 14:25:32 -08:00
parent 7cc1bc4b65
commit 6441de0ec2
5 changed files with 24 additions and 14 deletions
+1 -3
View File
@@ -2287,10 +2287,8 @@ public class Workspace extends SmoothPagedView
mAnimatingViewIntoPlace = true;
if (d.dragView.hasDrawn()) {
int duration = snapScreen < 0 ? -1 : ADJACENT_SCREEN_DROP_DURATION;
setFinalScrollForPageChange(snapScreen);
mLauncher.getDragLayer().animateViewIntoPosition(d.dragView, cell, duration,
disableHardwareLayersRunnable);
resetFinalScrollForPageChange(snapScreen);
disableHardwareLayersRunnable, this);
} else {
cell.setVisibility(VISIBLE);
}