Only clear insertion handle if there is no range selection
There is a race condition where a user makes an insertion handle and then long-presses some text to make a selection. This can result in the |INSERTION_HANDLE_CLEARED| coming after the call to |SelectionPopupControllerImpl#showSelectionMenu()| which resets the menu position set by |showSelectionMenu()|. This CL fixes that by first making sure there is no range selection before trying to clear the insertion handle. Bug: 773515 Change-Id: I16b1e845b3960420f424dd04d418464a26bc5f1b Reviewed-on: https://chromium-review.googlesource.com/884508Reviewed-by:Shimi Zhang <ctzsm@chromium.org> Commit-Queue: Pedro Amaral <amaralp@chromium.org> Cr-Commit-Position: refs/heads/master@{#531737}
Showing
Please register or sign in to comment