In case of error showing QR code text
This commit is contained in:
parent
052ee9c7e5
commit
a58bd1d2ce
|
@ -2,6 +2,7 @@ package net.codinux.banking.ui.screens
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import net.codinux.banking.ui.config.DI
|
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.model.error.ErroneousAction
|
||||||
import net.codinux.banking.ui.service.QrCodeService
|
import net.codinux.banking.ui.service.QrCodeService
|
||||||
|
|
||||||
|
@ -19,7 +20,7 @@ fun TransferMoneyFromQrCodeScreen(onClosed: () -> Unit) {
|
||||||
if (decodingResult.data != null) {
|
if (decodingResult.data != null) {
|
||||||
DI.uiState.showTransferMoneyDialogData.value = decodingResult.data
|
DI.uiState.showTransferMoneyDialogData.value = decodingResult.data
|
||||||
} else if (decodingResult.error != null) {
|
} 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}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue