Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42ac382a authored by Valentin Iftime's avatar Valentin Iftime Committed by Iavor-Valentin Iftime
Browse files

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
parent a48f8944
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -16,8 +16,8 @@
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/main_content"
    android:layout_height="@dimen/output_switcher_slice_max_height"
    android:maxHeight="@dimen/output_switcher_slice_max_height"
    android:layout_height="@dimen/notif_channel_panel_max_height"
    android:maxHeight="@dimen/notif_channel_panel_max_height"
    android:background="@drawable/settings_panel_background"
    android:orientation="vertical"
    android:layout_width="match_parent">
+1 −1
Original line number Diff line number Diff line
@@ -32,5 +32,5 @@
    <dimen name="biometric_auth_pattern_view_size">248dp</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>
+3 −0
Original line number Diff line number Diff line
@@ -458,6 +458,9 @@
    <dimen name="output_switcher_panel_icon_size">52dp</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 -->
    <dimen name="settings_panel_corner_radius">28dp</dimen>
    <dimen name="settings_panel_title_margin">24dp</dimen>