Not closing dialog if an error occurred
This commit is contained in:
parent
0de30f8c47
commit
1169c510bf
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue