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

Commit 5b164234 authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

[Notif redesign] Make group header respect header height

The parent of the group header was overriding the height of the header
to a different value from the one set in the view. Now that value
matches the height we expect for the redesign.

Bug: 378660052
Test: visual test, screenshot tests to come later
Flag: android.app.notifications_redesign_templates
Change-Id: I5570c0805850096fa0825ca81a89f43278499e2b
parent eb0a8e60
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -236,6 +236,9 @@
    <!-- The size of a bluetooth indicator icon that displays next to the RSSI status icon. -->
    <dimen name="status_bar_connected_device_bt_indicator_size">17dp</dimen>

    <!-- Height of a small notification in the status bar (2025 redesign version) -->
    <dimen name="notification_2025_header_height">@*android:dimen/notification_2025_header_height</dimen>

    <!-- Height of a small notification in the status bar (2025 redesign version) -->
    <dimen name="notification_2025_min_height">@*android:dimen/notification_2025_min_height</dimen>

+5 −1
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.systemui.statusbar.notification.stack;

import static android.app.Flags.notificationsRedesignTemplates;

import android.app.Notification;
import android.content.Context;
import android.content.res.Configuration;
@@ -171,7 +173,9 @@ public class NotificationChildrenContainer extends ViewGroup
                R.dimen.notification_children_container_margin_top);
        mNotificationTopPadding = res.getDimensionPixelOffset(
                R.dimen.notification_children_container_top_padding);
        mHeaderHeight = mNotificationHeaderMargin + mNotificationTopPadding;
        mHeaderHeight = notificationsRedesignTemplates()
                ? res.getDimensionPixelSize(R.dimen.notification_2025_header_height)
                : mNotificationHeaderMargin + mNotificationTopPadding;
        mCollapsedBottomPadding = res.getDimensionPixelOffset(
                R.dimen.notification_children_collapsed_bottom_padding);
        mEnableShadowOnChildNotifications =