File tree Expand file tree Collapse file tree
app/src/main/java/to/bitkit Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -302,11 +302,13 @@ fun SendSheet(
302302 )
303303 },
304304 onPaymentPending = { paymentHash, amount ->
305- appViewModel.preserveContactPaymentContext(paymentHash)navController.navigateTo(SendRoute .Pending (paymentHash, amount)) {
305+ appViewModel.preserveContactPaymentContext(paymentHash)
306+ navController.navigateTo(SendRoute .Pending (paymentHash, amount)) {
306307 popUpTo(startDestination) { inclusive = true }
307308 }
308309 },
309- onShowError = { errorMessage -> appViewModel.clearActiveContactPaymentContext()
310+ onShowError = { errorMessage ->
311+ appViewModel.clearActiveContactPaymentContext()
310312 navController.navigateTo(SendRoute .Error (errorMessage))
311313 }
312314 )
Original file line number Diff line number Diff line change @@ -1439,7 +1439,7 @@ class AppViewModel @Inject constructor(
14391439 .onSuccess { Logger .info(" Handling decoded scan data: $it " , context = TAG ) }
14401440 .getOrNull()
14411441
1442- if (isMainScanner && scan.isLightningRelated()) {
1442+ if (isMainScanner && scan.isLightningRelated()) {
14431443 showSheet(Sheet .Send ())
14441444 }
14451445
@@ -1458,7 +1458,10 @@ class AppViewModel @Inject constructor(
14581458 is Scanner .Gift -> handleNonPaymentScan { onScanGift(scan.code, scan.amount) }
14591459 else -> {
14601460 hideSheet()
1461- Logger .warn(if (scan == null ) " Failed to decode scan data" else " Received unhandled scan data '$scan '" , TAG )
1461+ Logger .warn(
1462+ if (scan == null ) " Failed to decode scan data" else " Received unhandled scan data '$scan '" ,
1463+ context = TAG ,
1464+ )
14621465 toast(
14631466 type = Toast .ToastType .WARNING ,
14641467 title = context.getString(R .string.other__qr_error_header),
You can’t perform that action at this time.
0 commit comments