Solve stutter when swiping All Apps the first time
Bug: 6024062 Change-Id: I6e05e9916389b1d90bd59443a04720fbf2338f5e
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user