Also filtering out "9010::Initialisierung fehlgeschlagen, Auftrag nicht bearbeitet." feedbacks, are of now use for user

This commit is contained in:
dankito 2020-10-16 19:04:52 +02:00
parent e4b6a7efd5
commit 293e8aa849
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ open class BankResponse(
protected open fun mapToMessageToShowToUser(feedback: Feedback): String? {
if (feedback.isError || feedback.isPinLocked) {
if (feedback.responseCode != 9800) { // filter out 'Dialogabbruch' feedbacks, is of no value to user
if (feedback.responseCode != 9800 // filter out 'Dialogabbruch' feedbacks, is of no value to user
&& (feedback.responseCode == 9010 && feedback.message.contains("Initialisierung fehlgeschlagen")) == false) {
return "${feedback.responseCode}: ${feedback.message}"
}
}