Commit 603ef46
Pedro Amaral
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 <twellington@chromium.org>
Commit-Queue: Pedro Amaral <amaralp@chromium.org>
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 <amaralp@chromium.org>
Cr-Commit-Position: refs/branch-heads/3729@{#61}
Cr-Branched-From: d4a8972-refs/heads/master@{#638880}1 parent add6db5 commit 603ef46
File tree
1 file changed
+4
-6
lines changed- chrome/android/java/src/org/chromium/chrome/browser/init
1 file changed
+4
-6
lines changedLines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
693 | 692 | | |
694 | 693 | | |
695 | 694 | | |
696 | | - | |
697 | | - | |
698 | | - | |
| 695 | + | |
| 696 | + | |
699 | 697 | | |
700 | 698 | | |
701 | 699 | | |
| |||
708 | 706 | | |
709 | 707 | | |
710 | 708 | | |
711 | | - | |
| 709 | + | |
712 | 710 | | |
713 | 711 | | |
714 | 712 | | |
| |||
0 commit comments