Double-bold the snooze option text.

Bug: 208592419
Test: manual
Merged-In: Ic3e704c47ec5e3f8bc11050e6d7642ff5d3b6e80
Change-Id: Ic3e704c47ec5e3f8bc11050e6d7642ff5d3b6e80
This commit is contained in:
Jeff DeCew
2021-12-16 12:24:35 -05:00
parent 1a5de0a925
commit 071ede77bf

View File

@@ -254,7 +254,7 @@ public class NotificationSnooze extends LinearLayout
return new NotificationSnoozeOption(null, minutes, description, resultText, action);
}
SpannableString string = new SpannableString(resultText);
string.setSpan(new StyleSpan(Typeface.BOLD),
string.setSpan(new StyleSpan(Typeface.BOLD, res.getConfiguration().fontWeightAdjustment),
index, index + description.length(), 0 /* flags */);
return new NotificationSnoozeOption(null, minutes, description, string,
action);