Solve stutter when swiping All Apps the first time

Bug: 6024062
Change-Id: I6e05e9916389b1d90bd59443a04720fbf2338f5e
This commit is contained in:
Michael Jurka
2012-05-14 23:13:15 -07:00
parent ceca4ff189
commit 5e368ffbad
2 changed files with 6 additions and 2 deletions
@@ -811,6 +811,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
onSyncWidgetPageItems(d);
}
mDeferredSyncWidgetPageItems.clear();
mForceDrawAllChildrenNextFrame = !toWorkspace;
}
@Override
@@ -1514,7 +1515,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
@Override
protected void onPageEndMoving() {
super.onPageEndMoving();
mForceDrawAllChildrenNextFrame = true;
// We reset the save index when we change pages so that it will be recalculated on next
// rotation
mSaveInstanceStateItemIndex = -1;