From 3c1608263601ecd900ff3b0093f41df7c92c91f6 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 5 Feb 2023 10:23:30 -0500 Subject: [PATCH] Don't show SourceNotInstalledException name in error snackbar --- .../main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt index dcac94e1b..c8541988d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt @@ -1059,6 +1059,6 @@ val chapterDecimalFormat = DecimalFormat( private val Throwable.snackbarMessage: String get() = when (val className = this::class.simpleName) { null -> message ?: "" - "Exception", "HttpException", "IOException" -> message ?: className + "Exception", "HttpException", "IOException", "SourceNotInstalledException" -> message ?: className else -> "$className: $message" }