mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Favourite : use localized string
This commit is contained in:
+1
-1
@@ -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
|
||||||
)
|
)
|
||||||
|
|||||||
+2
-2
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user