OSDN Git Service

Fix monkey crash in smart selection animation
authorMihai Popa <popam@google.com>
Fri, 25 May 2018 10:57:17 +0000 (11:57 +0100)
committerMihai Popa <popam@google.com>
Fri, 25 May 2018 14:01:23 +0000 (14:01 +0000)
commit6e8e27bf9ad118038282f29abc75b89e8f37bb86
tree3aaac99dc2fa166398301969d5170e5705d36f13
parenta76418645500c492cc86d802c60e1ff37c0a49d1
Fix monkey crash in smart selection animation

In Id65443e93d277c106ea955c867d39e94192cc55d we fixed a monkey crash
happening when the smart selected text had changed while the smart
selection animation was running. However, the change introduced a new
crash, happening when the smart selection result was null. This CL fixes
it, and lets startSelectionActionMode run even when the result is null,
as there seems to be some logic there which should happen in this case.

Bug: 80244201
Test: none
Change-Id: I7f0304446dec85578bdcd5011d2e9ea2737d3c36
(cherry picked from commit a9d27ea8692dbf6c6def6bd21754af0ad67d1675)
Merged-in: I7f0304446dec85578bdcd5011d2e9ea2737d3c36
core/java/android/widget/SelectionActionModeHelper.java