forked from github/szkolny
[Login] Fix crashing on register availability error.
This commit is contained in:
parent
58a26cc0c6
commit
9740e0b7bf
@ -88,11 +88,13 @@ class SzkolnyApi(val app: App) : CoroutineScope {
|
|||||||
withContext(Dispatchers.Default) { block.invoke(this@SzkolnyApi) }
|
withContext(Dispatchers.Default) { block.invoke(this@SzkolnyApi) }
|
||||||
}
|
}
|
||||||
catch (e: Exception) {
|
catch (e: Exception) {
|
||||||
ErrorDetailsDialog(
|
withContext(coroutineContext) {
|
||||||
|
ErrorDetailsDialog(
|
||||||
activity,
|
activity,
|
||||||
listOf(e.toApiError(TAG)),
|
listOf(e.toApiError(TAG)),
|
||||||
R.string.error_occured
|
R.string.error_occured
|
||||||
)
|
)
|
||||||
|
}
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user