Call then() even when api call fails

This commit is contained in:
sim 2023-03-19 18:03:33 +01:00
parent f29a969425
commit ec7e27b3a3
1 changed files with 4 additions and 1 deletions

View File

@ -61,6 +61,7 @@ class Api(val context: Context) {
override fun onError(e: Throwable) {
e.printStackTrace()
then()
}
override fun onComplete() {
@ -157,8 +158,9 @@ class Api(val context: Context) {
}
override fun onError(e: Throwable) {
block(null)
e.printStackTrace()
block(null)
then()
}
override fun onComplete() {
@ -188,6 +190,7 @@ class Api(val context: Context) {
override fun onError(e: Throwable) {
e.printStackTrace()
then()
}
override fun onComplete() {