90e8a19f7c6d2fe2da69ce113ddae4efa6ef6279
Problem: When dismissing the selection by clicking the TextView, invalidateActionModeAsync is called to ask text classifier to generate a new smart action for the selected text. It is not necessary because the selection is going to be dismissed. Cause: To update the smart action chip when a user adjusts the selection span by dragging the selection handle, we call showFloatingToolbar() when we get an ACTION_UP event. The problem is that we also get an ACTION_UP event when user dismisses the seletion by clicking the textview. In that case, we don't need to update the smart action chip or show the floating toolbar. Solution: Only call ShowFloatingToolbar() when we get an ACTION_UP and also the user is modifying the selection/insertion curosr. Test: Added a test in TextViewIntegrationTest. Test: Manual. Input a long phone number. Change the selection span to select fewer digits. Click "Call" and check the prefilled number. Test: Manual. Drag the insertion curosr(w EditText), floating toolbar is reshown when lifting the finger. Fixes: 169042542 Change-Id: Ic398a8521d99218b14689fe0668adc22e6b143c5
Merge "Return error in "sm unmount-app-data-dirs" if app data isolation is not enabled" am:
4d53e3b9bc am: 361fd37803 am: 2830048b80
…
Merge "Identity Credential: API changes for Android 12" am:
40d6635701 am: 6252f82f61 am: 581bf34de0
Merge "Keystore 2.0 SPI: Add back-off hint to BackendBusyException." am:
9aba68730c am: b03763fb58 am: 1f8a1b854d
Merge "Fix race condition in linearblock release between TIS and MediaCodec" am:
49467f1cdf am: 409784587c
Merge "Merge "Additional OWNERS coverage for storage." am:
d111833fd3 am: c7077507d0" into rvc-qpr-dev-plus-aosp am: f11186b845
…
…
…
…
Merge "Stop ignoring classes on the classpath for stubs" am:
61e082abdb am: ab3f2d3aba am: 81bfcb40a3
…
Description
No description provided
Languages
Java
73.7%
Kotlin
14%
PowerBuilder
5.8%
C++
5.2%
AIDL
1%