mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Use ListItem.onClick method
This commit is contained in:
+3
-5
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user