From 48984bac5d36f8c6a566d989735d25c5b664004d Mon Sep 17 00:00:00 2001 From: jvsena42 Date: Mon, 22 Jun 2026 09:59:57 -0300 Subject: [PATCH 1/2] fix: restore explore button on transfer activities --- .../wallets/activity/ActivityDetailScreen.kt | 69 +++++++++---------- changelog.d/next/1034.fixed.md | 1 + 2 files changed, 35 insertions(+), 35 deletions(-) create mode 100644 changelog.d/next/1034.fixed.md 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/1034.fixed.md b/changelog.d/next/1034.fixed.md new file mode 100644 index 000000000..7a8b3aa73 --- /dev/null +++ b/changelog.d/next/1034.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. From a3543fa5d00cf48d90287d193a288d8307aa9e4d Mon Sep 17 00:00:00 2001 From: jvsena42 Date: Mon, 22 Jun 2026 10:05:39 -0300 Subject: [PATCH 2/2] chore: rename changelog fragment Co-Authored-By: Claude Opus 4.8 (1M context) --- changelog.d/next/{1034.fixed.md => 1037.fixed.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename changelog.d/next/{1034.fixed.md => 1037.fixed.md} (100%) diff --git a/changelog.d/next/1034.fixed.md b/changelog.d/next/1037.fixed.md similarity index 100% rename from changelog.d/next/1034.fixed.md rename to changelog.d/next/1037.fixed.md