For #26283: Use message buttonLabel in MessageCard.

This commit is contained in:
Arturo Mejia 2022-08-02 10:50:22 -04:00 committed by mergify[bot]
parent 4ee1b6da9e
commit bddac731d5
1 changed files with 3 additions and 2 deletions

View File

@ -124,11 +124,12 @@ fun MessageCard(
}
}
if (!message.data.buttonLabel.isNullOrBlank()) {
val buttonLabel = message.data.buttonLabel
if (!buttonLabel.isNullOrBlank()) {
Spacer(modifier = Modifier.height(16.dp))
PrimaryButton(
text = stringResource(R.string.preferences_set_as_default_browser),
text = buttonLabel,
onClick = onClick
)
}