Merge "Solve stutter when swiping All Apps the first time" into jb-dev

This commit is contained in:
Michael Jurka authored and Android (Google) Code Review committed 2012-05-15 17:01:25 -07:00
commit 8bc26993d5
2 files changed
+6 -2

No files matched your search

@@ -816,6 +816,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
onSyncWidgetPageItems(d);
}
mDeferredSyncWidgetPageItems.clear();
mForceDrawAllChildrenNextFrame = !toWorkspace;
}
@Override
@@ -1519,7 +1520,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;