From edfab3b8327326d6926b417981648f27f00eb0fd Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Thu, 8 Mar 2018 18:39:20 +0100 Subject: [PATCH] SysUI: Fix a bunch of hacks around insets and cutouts PhoneStatusBarView: update correctly on rotation VolumeUI: properly place window instead of accounting for bars and letterbox PhoneWindowManager: remove special policy for TYPE_VOLUME_OVERLAY GlobalActions: Adjust for removal of special policy for volume overlays Bug: 74195186 Test: Use VolumeUI, GlobalActions, Keyguard and Status bar in all kinds of orientations and cutout configurations Change-Id: I72281cee202fea0a69766ff0d58ea55dcb5a36e1 --- .../SystemUI/res/layout/volume_dialog.xml | 4 +- packages/SystemUI/res/values/styles.xml | 5 +- .../globalactions/GlobalActionsDialog.java | 11 +- .../globalactions/GlobalActionsImpl.java | 14 +- .../phone/KeyguardStatusBarView.java | 29 ++-- .../statusbar/phone/PhoneStatusBarView.java | 71 +++----- .../systemui/volume/VolumeDialogImpl.java | 2 - .../systemui/volume/VolumeUiLayout.java | 153 ------------------ .../server/policy/PhoneWindowManager.java | 20 +-- 9 files changed, 71 insertions(+), 238 deletions(-) delete mode 100644 packages/SystemUI/src/com/android/systemui/volume/VolumeUiLayout.java diff --git a/packages/SystemUI/res/layout/volume_dialog.xml b/packages/SystemUI/res/layout/volume_dialog.xml index b6d241ba3f96a..0063f6af59fc9 100644 --- a/packages/SystemUI/res/layout/volume_dialog.xml +++ b/packages/SystemUI/res/layout/volume_dialog.xml @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. --> - - \ No newline at end of file + \ No newline at end of file diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index d006af1051619..d65e37d3e93e5 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -335,6 +335,7 @@