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