From b85c9eaa2478ba8a4ca37a2e7628984fbd88ada1 Mon Sep 17 00:00:00 2001 From: Beverly Date: Thu, 20 Feb 2020 13:45:36 -0500 Subject: [PATCH] DO NOT MERGE Set background drawable on status_bar_container Put the background drawable on status_bar_container instead of status_bar because we always want the status bar background to fill the entire container. status_bar receives new margins when corner display cutouts are enabled which may prevent status_bar from taking up the entire status_bar_container space. Test: atest SystemUITests Bug: 148355955 Change-Id: Ic7e0c0a79908d2a58d4595d239062435253edfda --- packages/SystemUI/res/layout/status_bar.xml | 1 - .../SystemUI/res/layout/super_status_bar.xml | 3 ++- .../phone/PhoneStatusBarTransitions.java | 22 +++++++++---------- .../statusbar/phone/PhoneStatusBarView.java | 7 ------ .../systemui/statusbar/phone/StatusBar.java | 14 ++++++------ .../statusbar/phone/StatusBarWindowView.java | 9 ++++++-- 6 files changed, 26 insertions(+), 30 deletions(-) diff --git a/packages/SystemUI/res/layout/status_bar.xml b/packages/SystemUI/res/layout/status_bar.xml index 4fae3c500a456..f8db97dbf800b 100644 --- a/packages/SystemUI/res/layout/status_bar.xml +++ b/packages/SystemUI/res/layout/status_bar.xml @@ -24,7 +24,6 @@ android:layout_width="match_parent" android:layout_height="@dimen/status_bar_height" android:id="@+id/status_bar" - android:background="@drawable/system_bar_background" android:orientation="vertical" android:focusable="false" android:descendantFocusability="afterDescendants" diff --git a/packages/SystemUI/res/layout/super_status_bar.xml b/packages/SystemUI/res/layout/super_status_bar.xml index a91493003bb54..9d56e08bc555d 100644 --- a/packages/SystemUI/res/layout/super_status_bar.xml +++ b/packages/SystemUI/res/layout/super_status_bar.xml @@ -54,7 +54,8 @@ + android:layout_height="wrap_content" + android:background="@drawable/system_bar_background" />