Descriptionaw: Ensure synchronization of PopupWindow handle visibility/position
Setting the visibility and position of a PopupWindow does not guarantee
that the new visibility/position will take effect in the same frame.
This leads to cases where the PopupWindow touch handles can appear out
of position for a single frame.
Prevent this by delaying visibility updates by one frame when the handles
transition from hidden to visible.
Also avoid issues where Android rejects one-dimensional selection
rect regions, as well as issues where selection bounds queried from
inside the selection event callback were stale.
BUG=490800
Committed: https://crrev.com/b3446ff33425d6a1944087fdb342cdc8959e7d99
Cr-Commit-Position: refs/heads/master@{#331703}
Patch Set 1 #Patch Set 2 : CLeanup #Patch Set 3 : Simpler visibility fix + selection rect fixes #Patch Set 4 : Tweak comment #
Total comments: 3
Patch Set 5 : Cleanup #
Total comments: 1
Patch Set 6 : Slightly simpler visibility fix #
Messages
Total messages: 22 (6 generated)
|