Add dimensions for notification channel panel

Removes dependency on output switcher dimens.
    Fix notification settings bottom sheet scroll in landscape.

Test: adb shell cmd notification post "Test notif" &
    adb shell am start -a android.settings.CHANNEL_NOTIFICATION_SETTINGS     --es android.provider.extra.CHANNEL_FILTER_LIST "sound"     --es android.provider.extra.CHANNEL_ID "shell_cmd"     --es android.provider.extra.APP_PACKAGE "com.android.shell"

Bug: 238845213
Change-Id: Iaf4b52b0aa8376c93ebc55fc005cdb55d2a9620e
This commit is contained in:
Valentin Iftime
2023-02-08 15:14:41 +01:00
committed by Iavor-Valentin Iftime
parent a48f8944f9
commit 42ac382af5
3 changed files with 6 additions and 3 deletions

View File

@@ -16,8 +16,8 @@
<LinearLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main_content" android:id="@+id/main_content"
android:layout_height="@dimen/output_switcher_slice_max_height" android:layout_height="@dimen/notif_channel_panel_max_height"
android:maxHeight="@dimen/output_switcher_slice_max_height" android:maxHeight="@dimen/notif_channel_panel_max_height"
android:background="@drawable/settings_panel_background" android:background="@drawable/settings_panel_background"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent"> android:layout_width="match_parent">

View File

@@ -32,5 +32,5 @@
<dimen name="biometric_auth_pattern_view_size">248dp</dimen> <dimen name="biometric_auth_pattern_view_size">248dp</dimen>
<dimen name="biometric_auth_pattern_view_max_size">348dp</dimen> <dimen name="biometric_auth_pattern_view_max_size">348dp</dimen>
<dimen name="output_switcher_slice_max_height">300dp</dimen> <dimen name="notif_channel_panel_max_height">300dp</dimen>
</resources> </resources>

View File

@@ -458,6 +458,9 @@
<dimen name="output_switcher_panel_icon_size">52dp</dimen> <dimen name="output_switcher_panel_icon_size">52dp</dimen>
<dimen name="output_switcher_panel_icon_corner_radius">16dp</dimen> <dimen name="output_switcher_panel_icon_corner_radius">16dp</dimen>
<!-- Notification channels panel related dimensions -->
<dimen name="notif_channel_panel_max_height">600dp</dimen>
<!-- Settings panel related dimensions --> <!-- Settings panel related dimensions -->
<dimen name="settings_panel_corner_radius">28dp</dimen> <dimen name="settings_panel_corner_radius">28dp</dimen>
<dimen name="settings_panel_title_margin">24dp</dimen> <dimen name="settings_panel_title_margin">24dp</dimen>