commit | acecc0c3fc21527f70681c0a180ce50cbe824033 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Mon Jul 20 23:21:07 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Jul 20 23:21:07 2020 +0000 |
tree | ef0cd3b09ad1915c236f0520cb3aaa26b07c63c4 | |
parent | 32f5e99519efad71b34da56d5743f3a625f8473f [diff] | |
parent | f55ccf435057ee585e0eb951da1c5b661375c759 [diff] |
Merge "Fix bug where realtimeReorder is called after views have been unbound." into ub-launcher3-rvc-qpr-dev am: f55ccf4350 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12196208 Change-Id: I5cd9dd385457a223c4a2553b1857f3e3a2c00e9d
diff --git a/src/com/android/launcher3/folder/FolderPagedView.java b/src/com/android/launcher3/folder/FolderPagedView.java index 32531c0..a08dd30 100644 --- a/src/com/android/launcher3/folder/FolderPagedView.java +++ b/src/com/android/launcher3/folder/FolderPagedView.java
@@ -500,6 +500,9 @@ * 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;