Merge "Fix bug where realtimeReorder is called after views have been unbound." into ub-launcher3-rvc-qpr-dev

This commit is contained in:
TreeHugger Robot
2020-07-20 23:01:30 +00:00
committed by Android (Google) Code Review

View File

@@ -500,6 +500,9 @@ public class FolderPagedView extends PagedView<PageIndicatorDots> {
* Reorders the items such that the {@param empty} spot moves to {@param target}
*/
public void realTimeReorder(int empty, int target) {
if (!mViewsBound) {
return;
}
completePendingPageChanges();
int delay = 0;
float delayAmount = START_VIEW_REORDER_DELAY;