Skip to content

Commit 48984ba

Browse files
committed
fix: restore explore button on transfer activities
1 parent e156d8d commit 48984ba

2 files changed

Lines changed: 35 additions & 35 deletions

File tree

app/src/main/java/to/bitkit/ui/screens/wallets/activity/ActivityDetailScreen.kt

Lines changed: 34 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -702,41 +702,40 @@ private fun ActivityDetailContent(
702702
}
703703
)
704704
)
705-
if (isTransfer && channelId != null && onChannelClick != null) {
706-
PrimaryButton(
707-
text = stringResource(R.string.lightning__connection),
708-
size = ButtonSize.Small,
709-
onClick = { onChannelClick(channelId) },
710-
icon = {
711-
Icon(
712-
painter = painterResource(R.drawable.ic_lightning),
713-
contentDescription = null,
714-
tint = accentColor,
715-
modifier = Modifier.size(16.dp)
716-
)
717-
},
718-
modifier = Modifier
719-
.weight(1f)
720-
.testTag("ChannelButton")
721-
)
722-
} else {
723-
PrimaryButton(
724-
text = stringResource(R.string.wallet__activity_explore),
725-
size = ButtonSize.Small,
726-
onClick = { onExploreClick(item.rawId()) },
727-
icon = {
728-
Icon(
729-
painter = painterResource(R.drawable.ic_git_branch),
730-
contentDescription = null,
731-
tint = accentColor,
732-
modifier = Modifier.size(16.dp)
733-
)
734-
},
735-
modifier = Modifier
736-
.weight(1f)
737-
.testTag("ActivityTxDetails")
738-
)
739-
}
705+
PrimaryButton(
706+
text = stringResource(R.string.wallet__activity_explore),
707+
size = ButtonSize.Small,
708+
onClick = { onExploreClick(item.rawId()) },
709+
icon = {
710+
Icon(
711+
painter = painterResource(R.drawable.ic_git_branch),
712+
contentDescription = null,
713+
tint = accentColor,
714+
modifier = Modifier.size(16.dp)
715+
)
716+
},
717+
modifier = Modifier
718+
.weight(1f)
719+
.testTag("ActivityTxDetails")
720+
)
721+
}
722+
if (isTransfer && channelId != null && onChannelClick != null) {
723+
PrimaryButton(
724+
text = stringResource(R.string.lightning__connection),
725+
size = ButtonSize.Small,
726+
onClick = { onChannelClick(channelId) },
727+
icon = {
728+
Icon(
729+
painter = painterResource(R.drawable.ic_lightning),
730+
contentDescription = null,
731+
tint = accentColor,
732+
modifier = Modifier.size(16.dp)
733+
)
734+
},
735+
modifier = Modifier
736+
.fillMaxWidth()
737+
.testTag("ChannelButton")
738+
)
740739
}
741740
}
742741
}

changelog.d/next/1034.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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.

0 commit comments

Comments
 (0)