Update the position markers when going back to Home.

This commit is contained in:
Romain Guy
2010-01-28 14:06:31 -08:00
parent e4013fd4c0
commit 483543f31c
+2
View File
@@ -249,6 +249,8 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag
if (!mScroller.isFinished()) mScroller.abortAnimation();
clearVacantCache();
mCurrentScreen = Math.max(0, Math.min(currentScreen, getChildCount() - 1));
mPreviousIndicator.setLevel(mCurrentScreen);
mNextIndicator.setLevel(mCurrentScreen);
scrollTo(mCurrentScreen * getWidth(), 0);
invalidate();
}