From 64d3ab137181bfc46953a59b39781f51aa03d714 Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Sat, 9 Jul 2022 19:16:47 +0600 Subject: [PATCH] ReaderFront: Remove unsupported function usage (#12497) --- .../tachiyomi/multisrc/readerfront/ReaderFrontGenerator.kt | 2 +- .../eu/kanade/tachiyomi/multisrc/readerfront/ReaderFrontI18N.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readerfront/ReaderFrontGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readerfront/ReaderFrontGenerator.kt index 20a750528..1ff10a319 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readerfront/ReaderFrontGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readerfront/ReaderFrontGenerator.kt @@ -9,7 +9,7 @@ class ReaderFrontGenerator : ThemeSourceGenerator { override val themeClass = "ReaderFront" - override val baseVersionCode = 5 + override val baseVersionCode = 6 override val sources = listOf( MultiLang("Ravens Scans", "https://ravens-scans.com", listOf("es", "en"), true), diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readerfront/ReaderFrontI18N.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readerfront/ReaderFrontI18N.kt index bb0f24197..fc74885da 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readerfront/ReaderFrontI18N.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readerfront/ReaderFrontI18N.kt @@ -4,7 +4,7 @@ sealed class ReaderFrontI18N(val id: Int) { protected abstract val genres: Map operator fun get(name: NameWrapper) = - name.toString().let { genres.getOrDefault(it, it) } + name.toString().let { genres[it] ?: it } object SPANISH : ReaderFrontI18N(1) { override val genres = mapOf(