From ff19c7c4ae6ba4d52a94658d42c759f8f563062e Mon Sep 17 00:00:00 2001 From: Satoshi Qazi Muhammed Date: Mon, 13 Jul 2026 04:49:02 -0700 Subject: [PATCH] debug: temporarily log raw QR content and decode failures Neither the raw scanned QR string nor the InvalidFormatException from a failed decode was ever logged - the failure path only shows a generic toast, making it impossible to diagnose from logcat alone. Temporary, will revert once the actual failure is identified. --- .../mixin/addressInput/AddressInputMixinProvider.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/feature-account-api/src/main/java/io/novafoundation/nova/feature_account_api/presenatation/mixin/addressInput/AddressInputMixinProvider.kt b/feature-account-api/src/main/java/io/novafoundation/nova/feature_account_api/presenatation/mixin/addressInput/AddressInputMixinProvider.kt index 0c81af85..e14b280c 100644 --- a/feature-account-api/src/main/java/io/novafoundation/nova/feature_account_api/presenatation/mixin/addressInput/AddressInputMixinProvider.kt +++ b/feature-account-api/src/main/java/io/novafoundation/nova/feature_account_api/presenatation/mixin/addressInput/AddressInputMixinProvider.kt @@ -178,9 +178,13 @@ class AddressInputMixinProvider( systemCallExecutor.executeSystemCall(ScanQrCodeCall()).mapCatching { val spec = specProvider.spec.first() + android.util.Log.e("QrDiag", "raw QR content: $it") + qrSharingFactory.create(spec::isValidAddress).decode(it).address }.onSuccess { address -> inputFlow.value = address + }.onFailure { + android.util.Log.e("QrDiag", "decode failed", it) }.onSystemCallFailure { errorDisplayer(resourceManager.getString(R.string.invoice_scan_error_no_info)) }