Update SSIV
This commit is contained in:
@@ -4,6 +4,7 @@ import android.content.ActivityNotFoundException
|
||||
import android.content.res.Resources
|
||||
import androidx.annotation.DrawableRes
|
||||
import coil.network.HttpException
|
||||
import com.davemorrissey.labs.subscaleview.decoder.ImageDecodeException
|
||||
import okio.FileNotFoundException
|
||||
import okio.IOException
|
||||
import okio.ProtocolException
|
||||
@@ -80,6 +81,7 @@ 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 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)
|
||||
|
||||
@@ -13,7 +13,7 @@ data class SourceCatalogPage(
|
||||
return other is SourceCatalogPage && other.type == type
|
||||
}
|
||||
|
||||
override fun getChangePayload(previousState: ListModel): Any? {
|
||||
override fun getChangePayload(previousState: ListModel): Any {
|
||||
return ListModelDiffCallback.PAYLOAD_NESTED_LIST_CHANGED
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ class PercentSummaryProvider : Preference.SummaryProvider<SliderPreference> {
|
||||
|
||||
private var percentPattern: String? = null
|
||||
|
||||
override fun provideSummary(preference: SliderPreference): CharSequence? {
|
||||
override fun provideSummary(preference: SliderPreference): CharSequence {
|
||||
val pattern = percentPattern ?: preference.context.getString(R.string.percent_string_pattern).also {
|
||||
percentPattern = it
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user