From 5472993e19d9aecf34efafbed91bd180cd4fccd7 Mon Sep 17 00:00:00 2001 From: Markus Fisch Date: Thu, 4 Jun 2026 18:03:29 +0200 Subject: [PATCH] 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. --- .../markusfisch/android/binaryeye/activity/DecodeActivity.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/kotlin/de/markusfisch/android/binaryeye/activity/DecodeActivity.kt b/app/src/main/kotlin/de/markusfisch/android/binaryeye/activity/DecodeActivity.kt index a7b94e90..e45649ba 100644 --- a/app/src/main/kotlin/de/markusfisch/android/binaryeye/activity/DecodeActivity.kt +++ b/app/src/main/kotlin/de/markusfisch/android/binaryeye/activity/DecodeActivity.kt @@ -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