Skip to content

Commit

Permalink
Fix missing bold support for Always on VPN error banner
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Nov 17, 2023
1 parent efeac6d commit ef67779
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,19 @@ private fun errorMessageBannerData(error: ErrorState) =
error.getErrorNotificationResources(LocalContext.current).run {
NotificationData(
title = stringResource(id = titleResourceId),
message = optionalMessageArgument?.let { stringResource(id = messageResourceId, it) }
?: stringResource(id = messageResourceId),
message =
HtmlCompat.fromHtml(
optionalMessageArgument?.let { stringResource(id = messageResourceId, it) }
?: stringResource(id = messageResourceId),
HtmlCompat.FROM_HTML_MODE_COMPACT
)
.toAnnotatedString(
boldSpanStyle =
SpanStyle(
color = MaterialTheme.colorScheme.onBackground,
fontWeight = FontWeight.ExtraBold
)
),
statusLevel = StatusLevel.Error,
action = null
)
Expand Down

0 comments on commit ef67779

Please sign in to comment.