ReaderFront: Remove unsupported function usage (#12497)
This commit is contained in:
parent
b09a89e22c
commit
64d3ab1371
|
@ -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),
|
||||
|
|
|
@ -4,7 +4,7 @@ sealed class ReaderFrontI18N(val id: Int) {
|
|||
protected abstract val genres: Map<String, String>
|
||||
|
||||
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(
|
||||
|
|
Loading…
Reference in New Issue