Loading core/java/android/app/Notification.java +3 −1 Original line number Diff line number Diff line Loading @@ -5856,7 +5856,9 @@ public class Notification implements Parcelable return null; } final int size = mContext.getResources().getDimensionPixelSize( R.dimen.notification_badge_size); Flags.notificationsRedesignTemplates() ? R.dimen.notification_2025_badge_size : R.dimen.notification_badge_size); Bitmap bitmap = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); badge.setBounds(0, 0, size, size); Loading core/res/res/layout/notification_2025_conversation_header.xml +12 −12 Original line number Diff line number Diff line Loading @@ -136,10 +136,10 @@ <ImageView android:id="@+id/phishing_alert" android:layout_width="@dimen/notification_phishing_alert_size" android:layout_height="@dimen/notification_phishing_alert_size" android:layout_marginStart="@dimen/notification_conversation_header_separating_margin" android:baseline="10dp" android:layout_width="@dimen/notification_2025_badge_size" android:layout_height="@dimen/notification_2025_badge_size" android:layout_marginStart="@dimen/notification_2025_badge_margin" android:baseline="@dimen/notification_2025_badge_baseline" android:scaleType="fitCenter" android:src="@drawable/ic_dialog_alert_material" android:visibility="gone" Loading @@ -148,10 +148,10 @@ <ImageView android:id="@+id/profile_badge" android:layout_width="@dimen/notification_badge_size" android:layout_height="@dimen/notification_badge_size" android:layout_marginStart="@dimen/notification_conversation_header_separating_margin" android:baseline="10dp" android:layout_width="@dimen/notification_2025_badge_size" android:layout_height="@dimen/notification_2025_badge_size" android:layout_marginStart="@dimen/notification_2025_badge_margin" android:baseline="@dimen/notification_2025_badge_baseline" android:scaleType="fitCenter" android:visibility="gone" android:contentDescription="@string/notification_work_profile_content_description" Loading @@ -159,10 +159,10 @@ <ImageView android:id="@+id/alerted_icon" android:layout_width="@dimen/notification_alerted_size" android:layout_height="@dimen/notification_alerted_size" android:layout_marginStart="@dimen/notification_conversation_header_separating_margin" android:baseline="10dp" android:layout_width="@dimen/notification_2025_badge_size" android:layout_height="@dimen/notification_2025_badge_size" android:layout_marginStart="@dimen/notification_2025_badge_margin" android:baseline="@dimen/notification_2025_badge_baseline" android:contentDescription="@string/notification_alerted_content_description" android:scaleType="fitCenter" android:src="@drawable/ic_notifications_alerted" Loading core/res/res/layout/notification_2025_template_collapsed_base.xml +2 −2 Original line number Diff line number Diff line Loading @@ -87,7 +87,7 @@ > <!-- NOTE: The notification_top_line_views layout contains the app_name_text. NOTE: The notification_2025_top_line_views layout contains the app_name_text. In order to include the title view at the beginning, the Notification.Builder has logic to hide that view whenever this title view is to be visible. --> Loading @@ -104,7 +104,7 @@ android:textAppearance="@style/TextAppearance.DeviceDefault.Notification.Title" /> <include layout="@layout/notification_top_line_views" /> <include layout="@layout/notification_2025_top_line_views" /> </NotificationTopLineView> Loading core/res/res/layout/notification_2025_template_collapsed_media.xml +2 −2 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ > <!-- NOTE: The notification_top_line_views layout contains the app_name_text. NOTE: The notification_2025_top_line_views layout contains the app_name_text. In order to include the title view at the beginning, the Notification.Builder has logic to hide that view whenever this title view is to be visible. --> Loading @@ -106,7 +106,7 @@ android:textAppearance="@style/TextAppearance.DeviceDefault.Notification.Title" /> <include layout="@layout/notification_top_line_views" /> <include layout="@layout/notification_2025_top_line_views" /> </NotificationTopLineView> Loading core/res/res/layout/notification_2025_template_collapsed_messaging.xml +2 −2 Original line number Diff line number Diff line Loading @@ -115,7 +115,7 @@ > <!-- NOTE: The notification_top_line_views layout contains the app_name_text. NOTE: The notification_2025_top_line_views layout contains the app_name_text. In order to include the title view at the beginning, the Notification.Builder has logic to hide that view whenever this title view is to be visible. --> Loading @@ -132,7 +132,7 @@ android:textAppearance="@style/TextAppearance.DeviceDefault.Notification.Title" /> <include layout="@layout/notification_top_line_views" /> <include layout="@layout/notification_2025_top_line_views" /> </NotificationTopLineView> Loading Loading
core/java/android/app/Notification.java +3 −1 Original line number Diff line number Diff line Loading @@ -5856,7 +5856,9 @@ public class Notification implements Parcelable return null; } final int size = mContext.getResources().getDimensionPixelSize( R.dimen.notification_badge_size); Flags.notificationsRedesignTemplates() ? R.dimen.notification_2025_badge_size : R.dimen.notification_badge_size); Bitmap bitmap = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); badge.setBounds(0, 0, size, size); Loading
core/res/res/layout/notification_2025_conversation_header.xml +12 −12 Original line number Diff line number Diff line Loading @@ -136,10 +136,10 @@ <ImageView android:id="@+id/phishing_alert" android:layout_width="@dimen/notification_phishing_alert_size" android:layout_height="@dimen/notification_phishing_alert_size" android:layout_marginStart="@dimen/notification_conversation_header_separating_margin" android:baseline="10dp" android:layout_width="@dimen/notification_2025_badge_size" android:layout_height="@dimen/notification_2025_badge_size" android:layout_marginStart="@dimen/notification_2025_badge_margin" android:baseline="@dimen/notification_2025_badge_baseline" android:scaleType="fitCenter" android:src="@drawable/ic_dialog_alert_material" android:visibility="gone" Loading @@ -148,10 +148,10 @@ <ImageView android:id="@+id/profile_badge" android:layout_width="@dimen/notification_badge_size" android:layout_height="@dimen/notification_badge_size" android:layout_marginStart="@dimen/notification_conversation_header_separating_margin" android:baseline="10dp" android:layout_width="@dimen/notification_2025_badge_size" android:layout_height="@dimen/notification_2025_badge_size" android:layout_marginStart="@dimen/notification_2025_badge_margin" android:baseline="@dimen/notification_2025_badge_baseline" android:scaleType="fitCenter" android:visibility="gone" android:contentDescription="@string/notification_work_profile_content_description" Loading @@ -159,10 +159,10 @@ <ImageView android:id="@+id/alerted_icon" android:layout_width="@dimen/notification_alerted_size" android:layout_height="@dimen/notification_alerted_size" android:layout_marginStart="@dimen/notification_conversation_header_separating_margin" android:baseline="10dp" android:layout_width="@dimen/notification_2025_badge_size" android:layout_height="@dimen/notification_2025_badge_size" android:layout_marginStart="@dimen/notification_2025_badge_margin" android:baseline="@dimen/notification_2025_badge_baseline" android:contentDescription="@string/notification_alerted_content_description" android:scaleType="fitCenter" android:src="@drawable/ic_notifications_alerted" Loading
core/res/res/layout/notification_2025_template_collapsed_base.xml +2 −2 Original line number Diff line number Diff line Loading @@ -87,7 +87,7 @@ > <!-- NOTE: The notification_top_line_views layout contains the app_name_text. NOTE: The notification_2025_top_line_views layout contains the app_name_text. In order to include the title view at the beginning, the Notification.Builder has logic to hide that view whenever this title view is to be visible. --> Loading @@ -104,7 +104,7 @@ android:textAppearance="@style/TextAppearance.DeviceDefault.Notification.Title" /> <include layout="@layout/notification_top_line_views" /> <include layout="@layout/notification_2025_top_line_views" /> </NotificationTopLineView> Loading
core/res/res/layout/notification_2025_template_collapsed_media.xml +2 −2 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ > <!-- NOTE: The notification_top_line_views layout contains the app_name_text. NOTE: The notification_2025_top_line_views layout contains the app_name_text. In order to include the title view at the beginning, the Notification.Builder has logic to hide that view whenever this title view is to be visible. --> Loading @@ -106,7 +106,7 @@ android:textAppearance="@style/TextAppearance.DeviceDefault.Notification.Title" /> <include layout="@layout/notification_top_line_views" /> <include layout="@layout/notification_2025_top_line_views" /> </NotificationTopLineView> Loading
core/res/res/layout/notification_2025_template_collapsed_messaging.xml +2 −2 Original line number Diff line number Diff line Loading @@ -115,7 +115,7 @@ > <!-- NOTE: The notification_top_line_views layout contains the app_name_text. NOTE: The notification_2025_top_line_views layout contains the app_name_text. In order to include the title view at the beginning, the Notification.Builder has logic to hide that view whenever this title view is to be visible. --> Loading @@ -132,7 +132,7 @@ android:textAppearance="@style/TextAppearance.DeviceDefault.Notification.Title" /> <include layout="@layout/notification_top_line_views" /> <include layout="@layout/notification_2025_top_line_views" /> </NotificationTopLineView> Loading