Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fixes font family path check for release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jreehuis committed Mar 18, 2021
1 parent 07f39c5 commit 313887b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ internal fun TypedArray.getFontFamilyOrNull(index: Int): FontFamilyWithWeight? {
else -> {
// If there's a resource ID and the string starts with res/font,
// it's probably a @font resource
if (tv.resourceId != 0 && tv.string.startsWith("res/font")) {
if (tv.resourceId != 0 && tv.string.startsWith("res/")) {
// If we're running on API 23+ and the resource is an XML, we can parse
// the fonts into a full FontFamily.
if (Build.VERSION.SDK_INT >= 23 && tv.string.endsWith(".xml")) {
Expand Down

0 comments on commit 313887b

Please sign in to comment.