Description[Android] Preserve selection on hide/detach
Previously, the selection was cleared and the handles dismissed if
Chrome was backgrounded (via home or task switcher buttons) or the
screen was locked. This breaks any kind of multitasking with an
active selection. Instead, in such cases preserve the selection,
hiding the action bar and restoring as necessary when the view is
reattached or is reshown.
Also expose a programmatic way for preserving the selection when the
view loses focus, which is typically undesirable (tapping omnibox or
switching tabs), but not always.
BUG=406925
Committed: https://crrev.com/6a4d1490ab6b5146a3dedd469d49a52045ce9194
Cr-Commit-Position: refs/heads/master@{#294082}
Patch Set 1 #Patch Set 2 : Fix detach/hide/blur #Patch Set 3 : Tests #Patch Set 4 : Experiments #Patch Set 5 : Cleanup #Patch Set 6 : Fix tests #Patch Set 7 : Final fix #Patch Set 8 : Add an explicit bit #
Total comments: 8
Patch Set 9 : Code review #
Messages
Total messages: 25 (2 generated)
|