summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramRaster.java
diff options
context:
space:
mode:
authorAbodunrinwa Toki <toki@google.com>2017-05-03 20:22:55 +0100
committerAbodunrinwa Toki <toki@google.com>2017-05-04 13:51:38 +0100
commit66c162730190db1079987ff456c7f1c0d522a20e (patch)
tree34a058c61e7f7ca1a7d290c3304c5ffee4b8cc63 /rs/java/android/renderscript/ProgramRaster.java
parentdf9b2e8d808b0ba901575fc0ddff944de4887bfc (diff)
Only classify text when the toolbar is shown.
classifyText() is used to generate a menu item in the selection toolbar to handle the selected text. In this cl we avoid calling classifyText() when the selection is changing but instead call it when we are about to show the toolbar. Previously, we depended on invalidateActionModeAsync() to classify text after a call to startActionMode(). Now that we've introduced invalidateActionMode() we need to be able to tell startSelectionActionMode() that we also want the text to be classified, hence the introduction of an input parameter, "adjustSelection", to startSelectionActionModeAysnc(). Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Bug: 34966796 Change-Id: I5b9fc9e8ab443f024f8ca461df5a4bcc6485d26b
Diffstat (limited to 'rs/java/android/renderscript/ProgramRaster.java')
0 files changed, 0 insertions, 0 deletions