Favourite : use localized string
This commit is contained in:
parent
a8bc0cb4ca
commit
5ad08c3279
2 changed files with 3 additions and 3 deletions
|
|
@ -373,7 +373,7 @@ private fun FavoriteSection(
|
|||
PreferenceCategory(modifier = modifier) {
|
||||
PreferenceSwitch(
|
||||
icon = CompoundIcons.FavouriteOff,
|
||||
title = "Favorite",
|
||||
title = stringResource(id = CommonStrings.common_favourite),
|
||||
isChecked = isFavorite,
|
||||
onCheckedChange = onFavoriteChanges
|
||||
)
|
||||
|
|
|
|||
|
|
@ -129,14 +129,14 @@ private fun RoomListModalBottomSheetContent(
|
|||
ListItem(
|
||||
headlineContent = {
|
||||
Text(
|
||||
text = "Favourite",
|
||||
text = stringResource(id = CommonStrings.common_favourite),
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
)
|
||||
},
|
||||
leadingContent = ListItemContent.Icon(
|
||||
iconSource = IconSource.Vector(
|
||||
CompoundIcons.FavouriteOff,
|
||||
contentDescription = "Favourite"
|
||||
contentDescription = stringResource(id = CommonStrings.common_favourite),
|
||||
)
|
||||
),
|
||||
trailingContent = ListItemContent.Switch(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue