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

Commit d0aef6b7 authored by Abodunrinwa Toki's avatar Abodunrinwa Toki Committed by android-build-merger
Browse files

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

am: 05d41a71

Change-Id: I9a2c05a5789c774331a5b9156082635a04ac1367
parents 02f135e8 05d41a71
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: