Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f620500 authored by Jon Miranda's avatar Jon Miranda
Browse files

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

Bug: 161498651
Change-Id: I89beaad9a91bfa1763454965bf95ba1a94d29902
parent dbca5a41
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;