OSDN Git Service

Maintain order in GlobalActions when rotating to/from seascape.
authorAlison Cichowlas <asc@google.com>
Wed, 21 Mar 2018 19:30:05 +0000 (15:30 -0400)
committerAlison Cichowlas <asc@google.com>
Thu, 22 Mar 2018 20:40:40 +0000 (16:40 -0400)
commitf8e71cd4404225e306b9f33f0bf124a0a083ae7d
tree994aa266396986eb9fbaf6c66740c833b775dd0c
parent113f9f85f4e65fd1b582e2d8057ba32cdc0731b5
Maintain order in GlobalActions when rotating to/from seascape.

Previous code keeps the order wrt the hardware -- eg, power off is
always nearest the camera -- but this winds up being unintuitive.
Instead maintain reading order: power is always first, farthest
left/top.

Bug: 7391084373910843
Test: Manual in all 3 rotations.
Change-Id: I2bcbdaf58953f746864c941339888608074c5400
packages/SystemUI/src/com/android/systemui/HardwareUiLayout.java