Skip to content

Commit f80b6f4

Browse files
committed
fix: qr code decoding error message
1 parent e73fbef commit f80b6f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ class AppViewModel @Inject constructor(
671671
}
672672
}
673673

674-
private suspend fun handleScan(result: String) = withContext(bgDispatcher) {
674+
private suspend fun handleScan(result: String, isQrCode: Boolean) = withContext(bgDispatcher) {
675675
// always reset state on new scan
676676
resetSendState()
677677
resetQuickPayData()
@@ -695,8 +695,8 @@ class AppViewModel @Inject constructor(
695695
Logger.warn("Unhandled scan data: $scan", context = TAG)
696696
toast(
697697
type = Toast.ToastType.WARNING,
698-
title = context.getString(R.string.other__scan_err_decoding),
699-
description = context.getString(R.string.other__scan_err_interpret_title),
698+
title = context.getString(R.string.other__qr_error_header),
699+
description = context.getString(R.string.other__qr_error_text),
700700
)
701701
}
702702
}

0 commit comments

Comments
 (0)