Make drop-on-adjacent-page anim happen at same time as snapToPage

This commit is contained in:
Patrick Dubroy committed 2010-12-19 20:24:40 -08:00
1 parent 8edd75c8bb
commit 6920c2ce34
1 file changed
+1 -14
+1 -14
View File
@@ -198,9 +198,6 @@ public class Workspace extends SmoothPagedView
// Paint used to draw external drop outline
private final Paint mExternalDragOutlinePaint = new Paint();
/** Used to trigger an animation as soon as the workspace stops scrolling. */
private Animator mAnimOnPageEndMoving = null;
// Camera and Matrix used to determine the final position of a neighboring CellLayout
private final Matrix mMatrix = new Matrix();
private final Camera mCamera = new Camera();
@@ -527,11 +524,6 @@ public class Workspace extends SmoothPagedView
if (!mDragController.dragging()) {
hideOutlines();
}
// Check for an animation that's waiting to be started
if (mAnimOnPageEndMoving != null) {
mAnimOnPageEndMoving.start();
mAnimOnPageEndMoving = null;
}
mOverScrollMaxBackgroundAlpha = 0.0f;
mOverScrollPageIndex = -1;
mPageMoving = false;
@@ -1557,12 +1549,7 @@ public class Workspace extends SmoothPagedView
});
view.setVisibility(View.INVISIBLE);
if (!mScroller.isFinished()) {
mAnimOnPageEndMoving = mDropAnim;
} else {
mDropAnim.start();
}
mDropAnim.start();
}
/**