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

Commit 3b8a5ea0 authored by Abodunrinwa Toki's avatar Abodunrinwa Toki
Browse files

Re-set PROCESS_TEXT selection if nothing was returned.

Bug: 25043887
Change-Id: If069a5e23f1adf6a2c3aac8fe7e3f19cff2e28ad
parent 57a5cba6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1474,7 +1474,12 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                        }
                    }
                }
            } else if (mText instanceof Spannable) {
                // Reset the selection.
                stopTextActionMode();
                Selection.setSelection((Spannable) mText, getSelectionStart(), getSelectionEnd());
            }

            if (mEditor.hasSelectionController()) {
                mEditor.startSelectionActionMode();
            }