
* Add MangaFire.to * Fixes Updated 'searchMangaNextPageSelector' Added throwing 'UnsupportedOperationException' for unused selector * Fixed naming of filters and fixed parameter's name of minimal chapters' filter * Fixed language parameter in query * Clean up MangaFire filters * Clean up MangaFire descrambler * Create MangaReader multisrc theme * Move MangaFire to overrides * Refactor MangaFire for multisrc * Update MangaReader changelog * Remove duplicate filter entry Co-authored-by: Druzai <70586473+Druzai@users.noreply.github.com> --------- Co-authored-by: Druzai <g9code@yandex.ru> Co-authored-by: Druzai <70586473+Druzai@users.noreply.github.com>
27 lines
823 B
Kotlin
27 lines
823 B
Kotlin
package eu.kanade.tachiyomi.extension.all.mangareaderto
|
|
|
|
import android.content.Context
|
|
import android.content.SharedPreferences
|
|
import androidx.preference.ListPreference
|
|
|
|
fun getPreferences(context: Context) = arrayOf(
|
|
|
|
ListPreference(context).apply {
|
|
key = QUALITY_PREF
|
|
title = "Image quality"
|
|
summary = "%s\n" +
|
|
"Changes will not be applied to chapters that are already loaded or read " +
|
|
"until you clear the chapter cache."
|
|
entries = arrayOf("Low", "Medium", "High")
|
|
entryValues = arrayOf("low", QUALITY_MEDIUM, "high")
|
|
setDefaultValue(QUALITY_MEDIUM)
|
|
},
|
|
)
|
|
|
|
val SharedPreferences.quality
|
|
get() =
|
|
getString(QUALITY_PREF, QUALITY_MEDIUM)!!
|
|
|
|
private const val QUALITY_PREF = "quality"
|
|
private const val QUALITY_MEDIUM = "medium"
|