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 10:57:17 +0000 (11:57 +0100)
commita9d27ea8692dbf6c6def6bd21754af0ad67d1675
tree9738210239606b21f8573adb4c83eed44c8ea825
parenta41a7094ac17ae3e88e3cb0757a30548bcbcc40f
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
core/java/android/widget/SelectionActionModeHelper.java