Update the position markers when going back to Home.
This commit is contained in:
1 parent
e4013fd4c0
commit
483543f31c
1 file changed
+2
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user