Copy hex data from hex dump

Add a tap handler to the hex dump so binary content can be copied
as a continuous hex string directly from the decode screen.
This commit is contained in:
Markus Fisch
2026-06-04 18:03:29 +02:00
parent 702dc75ddd
commit 5472993e19
@@ -347,6 +347,9 @@ class DecodeActivity : AbstractBaseActivity() {
hexView.showIf(prefs.showHexDump) { v ->
hexHeadlineView.visibility = View.VISIBLE
v.text = hexDump(bytes)
v.setOnClickListener {
copyToClipboard(bytes.toHexString())
}
}
if (!prefs.showHexDump) {
hexHeadlineView.visibility = View.GONE