Use ListItem.onClick method
This commit is contained in:
parent
b4cf8c274e
commit
a6e31b5c45
1 changed files with 3 additions and 5 deletions
|
|
@ -229,7 +229,7 @@ private fun ShareCurrentLocationItem(
|
||||||
headlineContent = {
|
headlineContent = {
|
||||||
Text(stringResource(CommonStrings.screen_share_my_location_action))
|
Text(stringResource(CommonStrings.screen_share_my_location_action))
|
||||||
},
|
},
|
||||||
modifier = Modifier.clickable(onClick = onClick),
|
onClick = onClick,
|
||||||
leadingContent = ListItemContent.Icon(
|
leadingContent = ListItemContent.Icon(
|
||||||
iconSource = IconSource.Vector(CompoundIcons.LocationNavigatorCentred())
|
iconSource = IconSource.Vector(CompoundIcons.LocationNavigatorCentred())
|
||||||
)
|
)
|
||||||
|
|
@ -244,7 +244,7 @@ private fun SharePinLocationItem(
|
||||||
headlineContent = {
|
headlineContent = {
|
||||||
Text(stringResource(CommonStrings.screen_share_this_location_action))
|
Text(stringResource(CommonStrings.screen_share_this_location_action))
|
||||||
},
|
},
|
||||||
modifier = Modifier.clickable(onClick = onClick),
|
onClick = onClick,
|
||||||
leadingContent = ListItemContent.Icon(
|
leadingContent = ListItemContent.Icon(
|
||||||
iconSource = IconSource.Vector(CompoundIcons.LocationNavigator())
|
iconSource = IconSource.Vector(CompoundIcons.LocationNavigator())
|
||||||
)
|
)
|
||||||
|
|
@ -259,9 +259,7 @@ private fun ShareLiveLocationItem(
|
||||||
headlineContent = {
|
headlineContent = {
|
||||||
Text("Share live location")
|
Text("Share live location")
|
||||||
},
|
},
|
||||||
modifier = Modifier.clickable(
|
onClick = onClick,
|
||||||
onClick = onClick
|
|
||||||
),
|
|
||||||
leadingContent = ListItemContent.Icon(
|
leadingContent = ListItemContent.Icon(
|
||||||
iconSource = IconSource.Vector(CompoundIcons.LocationPinSolid()),
|
iconSource = IconSource.Vector(CompoundIcons.LocationPinSolid()),
|
||||||
tintColor = ElementTheme.colors.iconAccentPrimary,
|
tintColor = ElementTheme.colors.iconAccentPrimary,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue