Update Task Bar and Split-Screen with new font type.

The change applies new font type to Task Bar and Split-Screen if gsf is enbled.

Bug: b/393610004
Test: Check that the fonts change when gsf is enabled.
Flag: com.android.wm.shell.enable_gsf
Change-Id: I704763dc9aec26aa0a6fe6b95c054c8e563cdc16
This commit is contained in:
Simon (Qiong) Sun committed 2025-03-06 10:59:26 -08:00
1 parent e3d58f1ecb
commit 391a00630e
7 files changed
+30 -72

No files matched your search

@@ -40,6 +40,8 @@ import com.android.launcher3.util.SplitConfigurationOptions.SplitBounds;
import com.android.quickstep.util.BorderAnimator;
import com.android.systemui.shared.recents.model.Task;
import com.android.systemui.shared.recents.model.ThumbnailData;
import com.android.wm.shell.shared.TypefaceUtils;
import com.android.wm.shell.shared.TypefaceUtils.FontFamily;
import kotlin.Unit;
@@ -108,11 +110,11 @@ public class KeyboardQuickSwitchTaskView extends ConstraintLayout {
TypefaceUtils.setTypeface(
mContent.findViewById(R.id.large_text),
TypefaceUtils.FONT_FAMILY_HEADLINE_LARGE_EMPHASIZED
FontFamily.GSF_HEADLINE_LARGE_EMPHASIZED
);
TypefaceUtils.setTypeface(
mContent.findViewById(R.id.small_text),
TypefaceUtils.FONT_FAMILY_LABEL_LARGE_BASELINE
FontFamily.GSF_LABEL_LARGE
);
Resources resources = mContext.getResources();