Chromium Code Reviews
DescriptionUpdating Toolbar Autohide behavior to account for multi-window mode.
This change updates the Desktop activity to be Multi-Window aware and to
disable the Autohide Toolbar behavior when in that mode.
When an activity is in Multi-window mode, the System UI is always
present (and cannot be dismissed). If an activity tries to dismiss the
System UI, no effect will take place. Thus we should not even set up
the autohide timer in this scenario.
With respect to multi-window mode, there is a method that can be called
to ascertain which mode the activity is in, however one catch is that
you cannot call it from OnCreate due to a race condition (OnResume is
ok). Thus I have set up a helper function with a precondition (called
after OnResume()) which will return whether it is in Multi-window mode.
One last change is to leave the video stream running if the activity is
paused in Multi-window mode. When two activities are in split-screen
mode, the currently selected activity is in the running state and the
other is in a paused state. I think we should continune updating the
video surface if we are in split screen and paused as the user may be
waiting for an action to occur before switching back to our activity.
Thus I have updated the logic to only disable the video stream on pause
if the activity is not in Multi-window mode (it will still be stopped
when the activity is stopped).
BUG=631266
Committed: https://crrev.com/847adc99338f55ab58704c17dbc2c9e2c54b8fcc
Cr-Commit-Position: refs/heads/master@{#429953}
Patch Set 1 #
Dependent Patchsets: Messages
Total messages: 12 (7 generated)
|
|||||||||||||||||||