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

Commit 31abc291 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Clearing drag state after the close animation is complete

Bug: 19350802
Change-Id: I048dfa2743692c6c7d56dcacab900ec2d17504ed
parent 111c8357
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -704,9 +704,15 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
        if (mInfo.opened) {
            mLauncher.closeFolder();
            mRearrangeOnClose = true;
        } else if (mState == STATE_ANIMATING) {
            mRearrangeOnClose = true;
        } else {
            rearrangeChildren();
            clearDragInfo();
        }
    }

    private void clearDragInfo() {
        mCurrentDragInfo = null;
        mCurrentDragView = null;
        mSuppressOnAdd = false;
@@ -1037,6 +1043,7 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
            }
        }
        mSuppressFolderDeletion = false;
        clearDragInfo();
    }

    @Thunk void replaceFolderWithFinalItem() {