Update dependencies

This commit is contained in:
Koitharu
2024-10-02 11:34:51 +03:00
parent f518acb8ee
commit a4345a40bf
4 changed files with 9 additions and 4 deletions

View File

@@ -81,7 +81,11 @@ fun Throwable.getDisplayMessage(resources: Resources): String = when (this) {
is UnknownHostException,
is SocketTimeoutException -> resources.getString(R.string.network_error)
is ImageDecodeException -> resources.getString(R.string.error_corrupted_file)
is ImageDecodeException -> resources.getString(
R.string.error_image_format,
format.ifNullOrEmpty { resources.getString(R.string.unknown) },
)
is NoDataReceivedException -> resources.getString(R.string.error_no_data_received)
is IncompatiblePluginException -> resources.getString(R.string.plugin_incompatible)
is WrongPasswordException -> resources.getString(R.string.wrong_password)

View File

@@ -737,4 +737,5 @@
<string name="source_code">Source code</string>
<string name="user_manual">User manual</string>
<string name="telegram_group">Telegram group</string>
<string name="error_image_format">Unsupported image format: %s</string>
</resources>