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

Commit 05d41a71 authored by Abodunrinwa Toki's avatar Abodunrinwa Toki Committed by Android (Google) Code Review
Browse files

Merge "TextView: Invalidate selection action mode on "select all"." into oc-dev

parents 0ac4b7d1 4ce651e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2016,7 +2016,7 @@ public class Editor {
    /**
     * Asynchronously invalidates an action mode using the TextClassifier.
     */
    private void invalidateActionModeAsync() {
    void invalidateActionModeAsync() {
        getSelectionActionModeHelper().invalidateActionModeAsync();
    }

+4 −0
Original line number Diff line number Diff line
@@ -10772,7 +10772,11 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener

        switch (id) {
            case ID_SELECT_ALL:
                final boolean hadSelection = hasSelection();
                selectAllText();
                if (mEditor != null && hadSelection) {
                    mEditor.invalidateActionModeAsync();
                }
                return true;

            case ID_UNDO: