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

Commit 48e2bba0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Notif redesign] Apply top line margin only to non-headerless notifs" into main

parents ada0e176 3a520134
Loading
Loading
Loading
Loading
+9 −10
Original line number Diff line number Diff line
@@ -5991,6 +5991,15 @@ public class Notification implements Parcelable
            }
            setHeaderlessVerticalMargins(contentView, p, hasSecondLine);
            // Update margins to leave space for the top line (but not for headerless views like
            // HUNS, which use a different layout that already accounts for that).
            if (Flags.notificationsRedesignTemplates() && !p.mHeaderless) {
                int margin = getContentMarginTop(mContext,
                        R.dimen.notification_2025_content_margin_top);
                contentView.setViewLayoutMargin(R.id.notification_main_column,
                        RemoteViews.MARGIN_TOP, margin, TypedValue.COMPLEX_UNIT_PX);
            }
            return contentView;
        }
@@ -6463,16 +6472,6 @@ public class Notification implements Parcelable
            big.setColorStateList(R.id.snooze_button, "setImageTintList", actionColor);
            big.setColorStateList(R.id.bubble_button, "setImageTintList", actionColor);
            // Update margins to leave space for the top line (but not for HUNs, which use a
            // different layout that already accounts for that).
            if (Flags.notificationsRedesignTemplates()
                    && p.mViewType != StandardTemplateParams.VIEW_TYPE_HEADS_UP) {
                int margin = getContentMarginTop(mContext,
                        R.dimen.notification_2025_content_margin_top);
                big.setViewLayoutMargin(R.id.notification_main_column, RemoteViews.MARGIN_TOP,
                        margin, TypedValue.COMPLEX_UNIT_PX);
            }
            boolean validRemoteInput = false;
            // In the UI, contextual actions appear separately from the standard actions, so we