Bug:
6584188
Change-Id: If6ab23532bd7040701e358f9cdd813d2f6a71e5c
// animation.
if (mModel.getCurrentIndex() > SCREEN_NAIL_MAX) {
switchToFirstImage();
- mPositionController.skipAnimation();
+ mPositionController.skipToFinalPosition();
return true;
}
// If we have the opening animation, do it. Otherwise go directly to the
// right position.
if (!startOpeningAnimationIfNeeded()) {
- snapAndRedraw();
- skipAnimation();
+ skipToFinalPosition();
}
}
snapAndRedraw();
}
+ public void skipToFinalPosition() {
+ stopAnimation();
+ snapAndRedraw();
+ skipAnimation();
+ }
+
////////////////////////////////////////////////////////////////////////////
// Start an animations for the focused box
////////////////////////////////////////////////////////////////////////////