You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AsyncInitializationActivity#checkOrientation() should check orientation not rotation
Previously checkOrientation() would get the new rotation, see if the rotation
changed, and if it did call onOrientationChanged() with the new rotation.
This is confusing since rotation and orientation mean different things. The only
consumer of these onOrientationChanged() events is ToolbarManager#onOrientionChanged()
which does two things:
1) ActionModeController#showControlsOnOrientationChange()
ActionModeController#showControlsOnOrientationChange() suggests listening to
orientation changes is more correct than rotation changes.
2) Update the Duet adaptive toolbar using Configuration#orientation.
Listening to orientation changes will fix the adaptive toolbar bugs that are linked.
Bug: 938860, 938564, 935348
Change-Id: Icc759d4821b9dd397b0ccc7ea824b143ad474212
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1512934
Reviewed-by: Theresa <[email protected]>
Commit-Queue: Pedro Amaral <[email protected]>
Cr-Original-Commit-Position: refs/heads/master@{#639642}(cherry picked from commit fa266cacff34c30936e54f7eaf3e2379136c0161)
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1519090
Reviewed-by: Pedro Amaral <[email protected]>
Cr-Commit-Position: refs/branch-heads/3729@{#61}
Cr-Branched-From: d4a8972-refs/heads/master@{#638880}
0 commit comments