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

Commit 7184c8aa authored by Clara Bayarri's avatar Clara Bayarri
Browse files

Remove insertion action mode runnable on selection start

This was in a previous change and accidentally got reverted on a rebase.
When going from an Insertion to a Selection/Drag Mode we want to make
sure no insertion modes are started by pending requests.

Previous change with accidental rebase:
I91bcd0d9c3e68d9c736698fe0bec010b4c9f5cf3

Bug: 21647271
Change-Id: I32c152494d236b693a489ea97448904163c9620a
parent e1f3214e
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1752,11 +1752,10 @@ public class Editor {
     * @return true if the drag was started.
     */
    private boolean selectCurrentWordAndStartDrag() {
        if (extractedTextModeWillBeStarted()) {
            // Cancel the single tap delayed runnable.
        if (mInsertionActionModeRunnable != null) {
            mTextView.removeCallbacks(mInsertionActionModeRunnable);
        }
        if (extractedTextModeWillBeStarted()) {
            return false;
        }
        if (mTextActionMode != null) {