summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Simon (Qiong) Sun <sqsun@google.com> 2025-03-12 03:10:05 +0000
committer Simon (Qiong) Sun <sqsun@google.com> 2025-03-12 03:15:51 +0000
commit747781c80a63243d11d0b455c4eb00b61f717da0 (patch)
treed88108d935a906bdd53a691fd76e339c0f448aae
parent1c5addbd052083799a83543776af8bfa70f771e2 (diff)
Update Task Bar and Split-Screen with new font type.
Fixed a bug where the wrong font family name was set in the Typeface create method. Bug: b/393610004 Test: Check that the fonts change when gsf is enabled. Flag: com.android.wm.shell.enable_gsf Change-Id: I67b1029111343be634011e5e2466dfc26f469bdd
-rw-r--r--libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/TypefaceUtils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/TypefaceUtils.kt b/libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/TypefaceUtils.kt
index 9bf56b075112..f4efcca28003 100644
--- a/libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/TypefaceUtils.kt
+++ b/libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/TypefaceUtils.kt
@@ -80,7 +80,7 @@ class TypefaceUtils {
fontStyle: Int = Typeface.NORMAL,
) {
if (!Flags.enableGsf()) return
- textView?.typeface = Typeface.create(fontFamily.name, fontStyle)
+ textView?.typeface = Typeface.create(fontFamily.value, fontStyle)
}
}
}