What steps will reproduce the problem?
(1) Smart select an entity.
(2) Repeat several times.
Sometimes selection menu doesn't show.
Logic of SmartSelectionCallback in SelectionPopupController.java is not very correct.
amaralp@, aelias@, I found that
1) when selection menu didn't trigger, there is only a SELECTION_HANDLES_SHOWN event triggered.
2) when selection menu shows, there are SELECTION_HANDLES_SHOWN and SELECTION_HANDLES_MOVED events.
Because we are depends on SELECTION_HANDLES_MOVED event to show the selection menu, so the bug happened.
I think there is a special case of Smart Selection we didn't handle correctly, when Smart Selection need to adjust selection range, sometimes this SELECTION_HANDLES_MOVED event somehow merged to previous SELECTION_HANDLES_SHOWN event IMO.
Is that possible somehow two events merged into one? If so, Could you please give guidance on this? Thanks!
Comment 1 by toki@google.com
, Sep 8 2017