diff --git a/app/src/main/java/to/bitkit/ui/screens/wallets/activity/ActivityDetailScreen.kt b/app/src/main/java/to/bitkit/ui/screens/wallets/activity/ActivityDetailScreen.kt index 4ce821aa5..2a295347c 100644 --- a/app/src/main/java/to/bitkit/ui/screens/wallets/activity/ActivityDetailScreen.kt +++ b/app/src/main/java/to/bitkit/ui/screens/wallets/activity/ActivityDetailScreen.kt @@ -702,41 +702,40 @@ private fun ActivityDetailContent( } ) ) - if (isTransfer && channelId != null && onChannelClick != null) { - PrimaryButton( - text = stringResource(R.string.lightning__connection), - size = ButtonSize.Small, - onClick = { onChannelClick(channelId) }, - icon = { - Icon( - painter = painterResource(R.drawable.ic_lightning), - contentDescription = null, - tint = accentColor, - modifier = Modifier.size(16.dp) - ) - }, - modifier = Modifier - .weight(1f) - .testTag("ChannelButton") - ) - } else { - PrimaryButton( - text = stringResource(R.string.wallet__activity_explore), - size = ButtonSize.Small, - onClick = { onExploreClick(item.rawId()) }, - icon = { - Icon( - painter = painterResource(R.drawable.ic_git_branch), - contentDescription = null, - tint = accentColor, - modifier = Modifier.size(16.dp) - ) - }, - modifier = Modifier - .weight(1f) - .testTag("ActivityTxDetails") - ) - } + PrimaryButton( + text = stringResource(R.string.wallet__activity_explore), + size = ButtonSize.Small, + onClick = { onExploreClick(item.rawId()) }, + icon = { + Icon( + painter = painterResource(R.drawable.ic_git_branch), + contentDescription = null, + tint = accentColor, + modifier = Modifier.size(16.dp) + ) + }, + modifier = Modifier + .weight(1f) + .testTag("ActivityTxDetails") + ) + } + if (isTransfer && channelId != null && onChannelClick != null) { + PrimaryButton( + text = stringResource(R.string.lightning__connection), + size = ButtonSize.Small, + onClick = { onChannelClick(channelId) }, + icon = { + Icon( + painter = painterResource(R.drawable.ic_lightning), + contentDescription = null, + tint = accentColor, + modifier = Modifier.size(16.dp) + ) + }, + modifier = Modifier + .fillMaxWidth() + .testTag("ChannelButton") + ) } } } diff --git a/changelog.d/next/1037.fixed.md b/changelog.d/next/1037.fixed.md new file mode 100644 index 000000000..7a8b3aa73 --- /dev/null +++ b/changelog.d/next/1037.fixed.md @@ -0,0 +1 @@ +Channel close and transfer activities, including force closes, now offer an Explore button so the on-chain transaction ID and block explorer details are accessible.