Not closing dialog if an error occurred

This commit is contained in:
dankito 2020-05-12 20:06:49 +02:00
parent 0de30f8c47
commit 1169c510bf
2 changed files with 4 additions and 2 deletions

View File

@ -252,7 +252,7 @@ open class TransferMoneyDialog : DialogFragment() {
.show() .show()
} }
if (response.isSuccessful || response.userCancelledAction) { if (response.isSuccessful || response.userCancelledAction) { // do not close dialog if an error occurred
this.dismiss() this.dismiss()
} }
} }

View File

@ -272,7 +272,9 @@ open class TransferMoneyDialog @JvmOverloads constructor(
transferData.amount, currency, transferData.creditorName, response.errorToShowToUser), null, response.error, currentStage) transferData.amount, currency, transferData.creditorName, response.errorToShowToUser), null, response.error, currentStage)
} }
close() if (response.isSuccessful || response.userCancelledAction) { // do not close dialog if an error occurred
close()
}
} }
} }