Change-Id: I2be98fc892c1a4392c4a5e035dd4cc1fa6fab0a9
mFirstLayout = false;
}
- if (isPageMoving()) {
- // If the page is moving, then snap it to the final position to ensure we don't get
- // stuck between pages
- snapToDestination();
- }
-
if (childCount > 0) {
final int index = isLayoutRtl() ? 0 : childCount - 1;
mMaxScrollX = getScrollForPage(index);
loadAssociatedPages(mCurrentPage, immediateAndOnly);
requestLayout();
}
+ if (isPageMoving()) {
+ // If the page is moving, then snap it to the final position to ensure we don't get
+ // stuck between pages
+ snapToDestination();
+ }
}
// Animate the drag view back to the original position