Don't show SourceNotInstalledException name in error snackbar
(cherry picked from commit 3c1608263601ecd900ff3b0093f41df7c92c91f6)
This commit is contained in:
parent
ff76335164
commit
304e3560fa
@ -1649,7 +1649,7 @@ 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"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user