Comix: SFW by default (#11696)

This commit is contained in:
Luqman 2025-11-17 22:51:23 +07:00 committed by Draff
parent 2f9626a2f7
commit df3319f128
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Comix'
extClass = '.Comix'
extVersionCode = 2
extVersionCode = 3
isNsfw = true
}

View File

@ -277,7 +277,7 @@ class Comix : HttpSource(), ConfigurableSource {
key = NSFW_PREF
title = "Hide NSFW content"
summary = "Hides NSFW content from popular, latest, and search lists."
setDefaultValue(false)
setDefaultValue(true)
}.let(screen::addPreference)
SwitchPreferenceCompat(screen.context).apply {
@ -320,7 +320,7 @@ class Comix : HttpSource(), ConfigurableSource {
getString(PREF_SCORE_POSITION, "top") ?: "top"
private fun SharedPreferences.hideNsfw() =
getBoolean(NSFW_PREF, false)
getBoolean(NSFW_PREF, true)
companion object {
private const val PREF_POSTER_QUALITY = "pref_poster_quality"