Skip to content

Commit f22f09e

Browse files
committed
Font weight crash fix
1 parent 1d922b3 commit f22f09e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Common/src/main/java/tk/glucodata/Notify.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2589,10 +2589,6 @@ Notification getforgroundnotification() {
25892589
remoteViews.setTextViewTextSize(R.id.notification_glucose, android.util.TypedValue.COMPLEX_UNIT_SP,
25902590
24 * fontSize);
25912591

2592-
if (android.os.Build.VERSION.SDK_INT >= 31) {
2593-
remoteViews.setString(R.id.notification_glucose, "setFontVariationSettings", "'wght' " + fontWeight);
2594-
}
2595-
25962592
finalText = ssb;
25972593
}
25982594

@@ -2630,10 +2626,6 @@ Notification getforgroundnotification() {
26302626
// Apply size and weight to expanded startup notification
26312627
remoteViewsExpanded.setTextViewTextSize(R.id.notification_glucose, android.util.TypedValue.COMPLEX_UNIT_SP,
26322628
28 * fontSize);
2633-
if (android.os.Build.VERSION.SDK_INT >= 31) {
2634-
remoteViewsExpanded.setString(R.id.notification_glucose, "setFontVariationSettings",
2635-
"'wght' " + fontWeight);
2636-
}
26372629

26382630
remoteViewsExpanded.setImageViewBitmap(R.id.notification_arrow, arrowBitmap);
26392631

0 commit comments

Comments
 (0)