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:
Marcel Hibbe 2023-06-16 16:05:15 +02:00
parent 4af19bd095
commit 527ba28651

View file

@ -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()
}
}