summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2022-02-01 20:32:36 +0000
committerTony Mak <tonymak@google.com>2022-02-10 19:53:27 +0000
commit5593099fc00e7e1c50ec206817dfc53d7616b52a (patch)
tree10f9b12852b80cd1af02073c331c91b1bb121e6d /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentd7d3c2d96b5e30c4cb6f0ea944fbe4442f81d567 (diff)
Fix the empty selection issue when onCreateActionMode returns false
One of the optimizations ag/12911059 did was calling SelectionModifierCursorController.show() before startActionModeInternal(). The rationale was that if we start the action mode first, SelectionModifierCursorController.show() would end up invalidating the action mode twice unnecessarily, once for each handle. However, with this optimization, we are calling SelectionModifierCursorController.show() even when onCreateActionMode returns false. Reverted this particular optimization to fix the issue. Added a test which was failing without this fix but passing with it. Fixes: 199380016 Fixes: 214341747 Test: atest TextViewActivityTest Merged-In: I793f76a23978cbbbbde2d16e8a522615174bcdd5 Change-Id: I793f76a23978cbbbbde2d16e8a522615174bcdd5 (cherry picked from commit 11bd64482249c9257ee22390de15f69f9c834247)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions