From f30e67588c49c8e7ed9af124337f67d54a372bb9 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 11 Jan 2021 21:38:33 -0800 Subject: Show error classname if message does not exist --- app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/kotlin') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt index 621f89e9..06626752 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt @@ -362,7 +362,7 @@ internal enum class FabStates( ?: return activity.materialDialog { title(R.string.kau_error) - message(text = err.message) + message(text = err.message ?: err.javaClass.name) } } }, -- cgit v1.2.3