Favourite : use localized string

This commit is contained in:
ganfra 2024-02-12 17:45:52 +01:00
parent cc5355a049
commit 35e4550244
2 changed files with 3 additions and 3 deletions

View file

@ -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
) )

View file

@ -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(