Re-set PROCESS_TEXT selection if nothing was returned.

Bug: 25043887
Change-Id: If069a5e23f1adf6a2c3aac8fe7e3f19cff2e28ad
This commit is contained in:
Abodunrinwa Toki
2015-10-20 00:19:23 +01:00
parent 57a5cba606
commit 3b8a5ea036

View File

@@ -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();
}