Setting correct active page when shrinking

Bug: 3130373

Change-Id: I5fa8772bd557b828aaac0d6433f1ff148b0d9f57
This commit is contained in:
Michael Jurka
2010-10-27 18:10:55 -07:00
parent 55cef262f9
commit a997ac2666
+1 -1
View File
@@ -707,7 +707,7 @@ public class Workspace extends SmoothPagedView
mShrunkenState = shrinkPosition;
// Stop any scrolling, move to the current page right away
setCurrentPage(mCurrentPage);
setCurrentPage((mNextPage != INVALID_PAGE) ? mNextPage : mCurrentPage);
updateWhichPagesAcceptDrops(mShrunkenState);
// we intercept and reject all touch events when we're small, so be sure to reset the state