Loading core/java/com/android/internal/widget/ConversationLayout.java +9 −0 Original line number Diff line number Diff line Loading @@ -209,6 +209,15 @@ public class ConversationLayout extends FrameLayout mImportanceRingView = findViewById(R.id.conversation_icon_badge_ring); mConversationIconBadge = findViewById(R.id.conversation_icon_badge); mConversationIconBadgeBg = findViewById(R.id.conversation_icon_badge_bg); if (notificationsRedesignTemplates()) { // The left_icon in the header has the default rounded square background. Make sure // we're using the circular background instead. ImageView leftIcon = findViewById(R.id.left_icon); if (leftIcon != null) { leftIcon.setBackgroundResource( R.drawable.notification_2025_conversation_icon_background); } } mIcon.setOnVisibilityChangedListener((visibility) -> { // Let's hide the background directly or in an animated way Loading core/java/com/android/internal/widget/MessagingLayout.java +9 −0 Original line number Diff line number Diff line Loading @@ -120,6 +120,15 @@ public class MessagingLayout extends FrameLayout mImageMessageContainer = findViewById(R.id.conversation_image_message_container); mRightIconView = findViewById(R.id.right_icon); mExpandButton = findViewById(R.id.expand_button); if (notificationsRedesignTemplates()) { // The left_icon in the header has the default rounded square background. Make sure // we're using the circular background instead. ImageView leftIcon = findViewById(R.id.left_icon); if (leftIcon != null) { leftIcon.setBackgroundResource( R.drawable.notification_2025_conversation_icon_background); } } // We still want to clip, but only on the top, since views can temporarily out of bounds // during transitions. DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); Loading core/res/res/layout/notification_2025_template_collapsed_conversation.xml +1 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ android:layout_height="@dimen/notification_2025_left_icon_size" android:layout_alignParentStart="true" android:layout_margin="@dimen/notification_2025_margin" android:background="@drawable/notification_large_icon_outline" android:background="@drawable/notification_2025_conversation_icon_background" android:clipToOutline="true" android:importantForAccessibility="no" android:scaleType="centerCrop" Loading core/res/res/layout/notification_2025_template_collapsed_messaging.xml +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ android:layout_height="@dimen/notification_2025_left_icon_size" android:layout_alignParentStart="true" android:layout_margin="@dimen/notification_2025_margin" android:background="@drawable/notification_large_icon_outline" android:background="@drawable/notification_2025_conversation_icon_background" android:clipToOutline="true" android:importantForAccessibility="no" android:scaleType="centerCrop" Loading core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -4233,6 +4233,7 @@ <java-symbol type="id" name="snooze_button" /> <java-symbol type="dimen" name="text_size_body_2_material" /> <java-symbol type="dimen" name="notification_icon_circle_size" /> <java-symbol type="drawable" name="notification_2025_conversation_icon_background" /> <java-symbol type="drawable" name="notification_icon_circle" /> <java-symbol type="drawable" name="notification_progress_icon_background" /> <java-symbol type="dimen" name="messaging_avatar_size" /> Loading Loading
core/java/com/android/internal/widget/ConversationLayout.java +9 −0 Original line number Diff line number Diff line Loading @@ -209,6 +209,15 @@ public class ConversationLayout extends FrameLayout mImportanceRingView = findViewById(R.id.conversation_icon_badge_ring); mConversationIconBadge = findViewById(R.id.conversation_icon_badge); mConversationIconBadgeBg = findViewById(R.id.conversation_icon_badge_bg); if (notificationsRedesignTemplates()) { // The left_icon in the header has the default rounded square background. Make sure // we're using the circular background instead. ImageView leftIcon = findViewById(R.id.left_icon); if (leftIcon != null) { leftIcon.setBackgroundResource( R.drawable.notification_2025_conversation_icon_background); } } mIcon.setOnVisibilityChangedListener((visibility) -> { // Let's hide the background directly or in an animated way Loading
core/java/com/android/internal/widget/MessagingLayout.java +9 −0 Original line number Diff line number Diff line Loading @@ -120,6 +120,15 @@ public class MessagingLayout extends FrameLayout mImageMessageContainer = findViewById(R.id.conversation_image_message_container); mRightIconView = findViewById(R.id.right_icon); mExpandButton = findViewById(R.id.expand_button); if (notificationsRedesignTemplates()) { // The left_icon in the header has the default rounded square background. Make sure // we're using the circular background instead. ImageView leftIcon = findViewById(R.id.left_icon); if (leftIcon != null) { leftIcon.setBackgroundResource( R.drawable.notification_2025_conversation_icon_background); } } // We still want to clip, but only on the top, since views can temporarily out of bounds // during transitions. DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); Loading
core/res/res/layout/notification_2025_template_collapsed_conversation.xml +1 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ android:layout_height="@dimen/notification_2025_left_icon_size" android:layout_alignParentStart="true" android:layout_margin="@dimen/notification_2025_margin" android:background="@drawable/notification_large_icon_outline" android:background="@drawable/notification_2025_conversation_icon_background" android:clipToOutline="true" android:importantForAccessibility="no" android:scaleType="centerCrop" Loading
core/res/res/layout/notification_2025_template_collapsed_messaging.xml +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ android:layout_height="@dimen/notification_2025_left_icon_size" android:layout_alignParentStart="true" android:layout_margin="@dimen/notification_2025_margin" android:background="@drawable/notification_large_icon_outline" android:background="@drawable/notification_2025_conversation_icon_background" android:clipToOutline="true" android:importantForAccessibility="no" android:scaleType="centerCrop" Loading
core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -4233,6 +4233,7 @@ <java-symbol type="id" name="snooze_button" /> <java-symbol type="dimen" name="text_size_body_2_material" /> <java-symbol type="dimen" name="notification_icon_circle_size" /> <java-symbol type="drawable" name="notification_2025_conversation_icon_background" /> <java-symbol type="drawable" name="notification_icon_circle" /> <java-symbol type="drawable" name="notification_progress_icon_background" /> <java-symbol type="dimen" name="messaging_avatar_size" /> Loading