mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 13:05:31 +03:00
Fix to show other errors than HttpException (e.g. ConnectException)
Fix theming Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
4af19bd095
commit
527ba28651
1 changed files with 5 additions and 1 deletions
|
@ -659,6 +659,7 @@ class ConversationsListActivity :
|
|||
viewThemeUtils.dialog.colorMaterialAlertDialogBackground(it.context, dialogBuilder)
|
||||
val dialog = dialogBuilder.show()
|
||||
viewThemeUtils.platform.colorTextButtons(
|
||||
dialog.getButton(AlertDialog.BUTTON_POSITIVE),
|
||||
dialog.getButton(AlertDialog.BUTTON_NEGATIVE)
|
||||
)
|
||||
}
|
||||
|
@ -721,10 +722,13 @@ class ConversationsListActivity :
|
|||
HTTP_CLIENT_UPGRADE_REQUIRED -> showOutdatedClientDialog()
|
||||
HTTP_SERVICE_UNAVAILABLE -> showServiceUnavailableDialog(throwable)
|
||||
else -> {
|
||||
Log.e(TAG, "Http exception in ConversationListActivity", throwable)
|
||||
Log.e(TAG, "Http Exception in ConversationListActivity", throwable)
|
||||
showErrorDialog()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Log.e(TAG, "Exception in ConversationListActivity", throwable)
|
||||
showErrorDialog()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue