Comix: SFW by default (#11696)
This commit is contained in:
parent
2f9626a2f7
commit
df3319f128
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'Comix'
|
extName = 'Comix'
|
||||||
extClass = '.Comix'
|
extClass = '.Comix'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -277,7 +277,7 @@ class Comix : HttpSource(), ConfigurableSource {
|
|||||||
key = NSFW_PREF
|
key = NSFW_PREF
|
||||||
title = "Hide NSFW content"
|
title = "Hide NSFW content"
|
||||||
summary = "Hides NSFW content from popular, latest, and search lists."
|
summary = "Hides NSFW content from popular, latest, and search lists."
|
||||||
setDefaultValue(false)
|
setDefaultValue(true)
|
||||||
}.let(screen::addPreference)
|
}.let(screen::addPreference)
|
||||||
|
|
||||||
SwitchPreferenceCompat(screen.context).apply {
|
SwitchPreferenceCompat(screen.context).apply {
|
||||||
@ -320,7 +320,7 @@ class Comix : HttpSource(), ConfigurableSource {
|
|||||||
getString(PREF_SCORE_POSITION, "top") ?: "top"
|
getString(PREF_SCORE_POSITION, "top") ?: "top"
|
||||||
|
|
||||||
private fun SharedPreferences.hideNsfw() =
|
private fun SharedPreferences.hideNsfw() =
|
||||||
getBoolean(NSFW_PREF, false)
|
getBoolean(NSFW_PREF, true)
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private const val PREF_POSTER_QUALITY = "pref_poster_quality"
|
private const val PREF_POSTER_QUALITY = "pref_poster_quality"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user