Merge "Change font family for items in Cast dialog" into tm-dev am: 80dbdd63f4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17256545

Change-Id: Idfe3aa38eb6f1a631f8d4cb13c5f5fbedb7d58c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Fabian Kozynski
2022-04-04 20:16:41 +00:00
committed by Automerger Merge Worker
2 changed files with 11 additions and 1 deletions

View File

@@ -958,6 +958,16 @@
<item name="android:textAlignment">center</item>
</style>
<!-- We explicitly overload this because we don't have control over the style or layout for
the cast dialog items, as it's in `@android:layout/media_route_list_item. -->
<style name="TextAppearance.CastItem" parent="@android:style/TextAppearance.DeviceDefault.Medium">
<item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
</style>
<style name="Theme.SystemUI.Dialog.Cast">
<item name="android:textAppearanceMedium">@style/TextAppearance.CastItem</item>
</style>
<!-- ************************************************************************************* -->
<style name="Widget" />
<style name="Widget.Dialog" />

View File

@@ -202,7 +202,7 @@ public class CastTile extends QSTileImpl<BooleanState> {
mActivityStarter
.postStartActivityDismissingKeyguard(getLongClickIntent(), 0,
controller);
}, R.style.Theme_SystemUI_Dialog, false /* showProgressBarWhenEmpty */);
}, R.style.Theme_SystemUI_Dialog_Cast, false /* showProgressBarWhenEmpty */);
holder.init(dialog);
SystemUIDialog.setShowForAllUsers(dialog, true);
SystemUIDialog.registerDismissListener(dialog);