Fix bug where realtimeReorder is called after views have been unbound.

Bug: 161498651
Change-Id: I89beaad9a91bfa1763454965bf95ba1a94d29902
This commit is contained in:
Jon Miranda
2020-07-20 15:28:25 -07:00
parent dbca5a4190
commit 0f620500b0

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;