From 8912d6ae33d6b3d32ecc89641e8c2851cc1089ba Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Wed, 12 Mar 2025 19:46:11 -0700 Subject: [PATCH] Update flyout text view to use a diff font Flag: com.android.wm.shell.enable_gsf Test: manual - enable the flag and inspect the text of all the UI elements Bug: 379159675 Change-Id: I65dde0de5b2afad15598d16ab96f2fc51c9e1f59 --- .../launcher3/taskbar/bubbles/flyout/BubbleBarFlyoutView.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/flyout/BubbleBarFlyoutView.kt b/quickstep/src/com/android/launcher3/taskbar/bubbles/flyout/BubbleBarFlyoutView.kt index 75bf937a87..ac87b5ee00 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/flyout/BubbleBarFlyoutView.kt +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/flyout/BubbleBarFlyoutView.kt @@ -36,6 +36,8 @@ import androidx.constraintlayout.widget.ConstraintLayout import androidx.core.animation.ArgbEvaluator import com.android.launcher3.R import com.android.launcher3.popup.RoundedArrowDrawable +import com.android.wm.shell.shared.TypefaceUtils +import com.android.wm.shell.shared.TypefaceUtils.Companion.setTypeface import kotlin.math.min /** The flyout view used to notify the user of a new bubble notification. */ @@ -163,6 +165,9 @@ class BubbleBarFlyoutView( LayoutInflater.from(context).inflate(R.layout.bubblebar_flyout, this, true) id = R.id.bubble_bar_flyout_view + setTypeface(title, TypefaceUtils.FontFamily.GSF_LABEL_LARGE) + setTypeface(message, TypefaceUtils.FontFamily.GSF_BODY_MEDIUM) + val ta = context.obtainStyledAttributes(intArrayOf(android.R.attr.dialogCornerRadius)) cornerRadius = ta.getDimensionPixelSize(0, 0).toFloat() ta.recycle()