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

Commit 907ba55d authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi Committed by android-build-merger
Browse files

Merge "Show drag handles after finishing batch edit if needed." into nyc-dev

am: be1cd9f5

* commit 'be1cd9f5':
  Show drag handles after finishing batch edit if needed.

Change-Id: I6712ca831e924ff52e365e5a5c7c76f3392ee415
parents ef761b1f be1cd9f5
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1465,6 +1465,16 @@ public class Editor {
        // sendUpdateSelection knows to avoid sending if the selection did
        // not actually change.
        sendUpdateSelection();

        // Show drag handles if they were blocked by batch edit mode.
        if (mTextActionMode != null) {
            final CursorController cursorController = mTextView.hasSelection() ?
                    getSelectionController() : getInsertionController();
            if (cursorController != null && !cursorController.isActive()
                    && !cursorController.isCursorBeingModified()) {
                cursorController.show();
            }
        }
    }

    static final int EXTRACT_NOTHING = -2;