From 806297f85ce2ef198888dc82c2a5d3ea9e55093a Mon Sep 17 00:00:00 2001 From: Behnam Heydarshahi Date: Mon, 27 Feb 2023 19:39:25 +0000 Subject: [PATCH] Extend settings panel under navigation bar The panel used to sit above the navigation bar. Now it extends down all the way to the edge of the screen. Bug: b/250484565 Test: make ROBOTEST_FILTER=SettingsPanelActivityTest RunSettingsRoboTests -j40 Test: Manual. When volume panel is opened, verify that it extends all the way to the bottom of the window, instead of sitting on navigation bar. Panel can be opened with: adb shell am start -a android.settings.panel.action.VOLUME Substitute VOLUME with NFC and WIFI for the other settings panels. Change-Id: Ibae5d3602231e2309b5ff847c630a1f8c82ea355 --- res/layout/panel_layout.xml | 1 + res/values/themes.xml | 1 + .../settings/panel/SettingsPanelActivity.java | 27 +++++++++++++ .../panel/SettingsPanelActivityTest.java | 39 +++++++++++++++++++ 4 files changed, 68 insertions(+) diff --git a/res/layout/panel_layout.xml b/res/layout/panel_layout.xml index f154abc40cb..fd8d55f1356 100644 --- a/res/layout/panel_layout.xml +++ b/res/layout/panel_layout.xml @@ -20,6 +20,7 @@ android:id="@+id/panel_container" android:layout_width="@dimen/settings_panel_width" android:layout_height="wrap_content" + android:fitsSystemWindows="true" android:layout_gravity="center_horizontal" android:background="@drawable/settings_panel_rounded_top_corner_background" > diff --git a/res/values/themes.xml b/res/values/themes.xml index ff56e7edca9..e6c0510dbb1 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -229,6 +229,7 @@