mirror of
https://codeberg.org/NextPush/nextpush-android.git
synced 2025-01-02 21:10:14 +01:00
Call then() even when api call fails
This commit is contained in:
parent
f29a969425
commit
ec7e27b3a3
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user