diff --git a/android/src/main/kotlin/dev/msfjarvis/claw/android/glance/WidgetListEntry.kt b/android/src/main/kotlin/dev/msfjarvis/claw/android/glance/WidgetListEntry.kt index 9f31018f..f9242469 100644 --- a/android/src/main/kotlin/dev/msfjarvis/claw/android/glance/WidgetListEntry.kt +++ b/android/src/main/kotlin/dev/msfjarvis/claw/android/glance/WidgetListEntry.kt @@ -44,14 +44,11 @@ fun WidgetListEntry( ) { val titleStyle = MaterialTheme.typography.titleMedium val subtitleStyle = MaterialTheme.typography.labelLarge - val postAction = - if (post.url.isNotEmpty()) { - actionStartActivity(Intent(Intent.ACTION_VIEW, Uri.parse(post.url))) - } else { - actionStartActivity(actionParametersOf(destinationKey to post.shortId)) - } val commentsAction = actionStartActivity(actionParametersOf(destinationKey to post.shortId)) + val postAction = + if (post.url.isNotEmpty()) actionStartActivity(Intent(Intent.ACTION_VIEW, Uri.parse(post.url))) + else commentsAction Box(modifier.padding(8.dp)) { Row( verticalAlignment = Alignment.CenterVertically,