In case of error showing QR code text

This commit is contained in:
dankito 2024-10-04 07:37:26 +02:00
parent 052ee9c7e5
commit a58bd1d2ce
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package net.codinux.banking.ui.screens
import androidx.compose.runtime.Composable
import net.codinux.banking.ui.config.DI
import net.codinux.banking.ui.model.Config.NewLine
import net.codinux.banking.ui.model.error.ErroneousAction
import net.codinux.banking.ui.service.QrCodeService
@ -19,7 +20,7 @@ fun TransferMoneyFromQrCodeScreen(onClosed: () -> Unit) {
if (decodingResult.data != null) {
DI.uiState.showTransferMoneyDialogData.value = decodingResult.data
} else if (decodingResult.error != null) {
DI.uiState.applicationErrorOccurred(ErroneousAction.ReadEpcQrCode, decodingResult.error)
DI.uiState.applicationErrorOccurred(ErroneousAction.ReadEpcQrCode, decodingResult.error + "${NewLine}${NewLine}Gelesener QR-Code ist:${NewLine}${result.decodedQrCodeText}")
}
}
}