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

Commit 58dced40 authored by Garfield Tan's avatar Garfield Tan
Browse files

Fix a crash on spring loading folder/roots.

Change-Id: I6bcbeffb30b237659eed0a0b2eaba0dfc49f7e99
parent d080506e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1117,8 +1117,13 @@ public class DirectoryFragment extends Fragment
        // When files are selected for dragging, ActionMode is started. This obscures the breadcrumb
        // with an ActionBar. In order to make drag and drop to the breadcrumb possible, we first
        // end ActionMode so the breadcrumb is visible to the user.
        //
        // mActionModeController is null when dragStarted() is called on spring loaded
        // folders/roots.
        if (mActionModeController != null) {
            mActionModeController.finishActionMode();
        }
    }

    void dragStopped(boolean result) {
        if (result) {