Fixed MangaDex content rating preferences being swapped (#8784)
This commit is contained in:
parent
42f6a32163
commit
4d1bc517f2
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'MangaDex'
|
||||
pkgNameSuffix = 'all.mangadex'
|
||||
extClass = '.MangaDexFactory'
|
||||
extVersionCode = 127
|
||||
extVersionCode = 128
|
||||
libVersion = '1.2'
|
||||
containsNsfw = true
|
||||
}
|
||||
|
|
|
@ -69,14 +69,14 @@ abstract class MangaDex(override val lang: String, val dexLang: String) :
|
|||
addQueryParameter("contentRating[]", "safe")
|
||||
}
|
||||
if (preferences.getBoolean(
|
||||
MDConstants.getContentRatingEroticaPrefKey(dexLang),
|
||||
MDConstants.getContentRatingSuggestivePrefKey(dexLang),
|
||||
false
|
||||
)
|
||||
) {
|
||||
addQueryParameter("contentRating[]", "suggestive")
|
||||
}
|
||||
if (preferences.getBoolean(
|
||||
MDConstants.getContentRatingSuggestivePrefKey(dexLang),
|
||||
MDConstants.getContentRatingEroticaPrefKey(dexLang),
|
||||
false
|
||||
)
|
||||
) {
|
||||
|
@ -426,7 +426,7 @@ abstract class MangaDex(override val lang: String, val dexLang: String) :
|
|||
preferences.edit().putString(MDConstants.getCoverQualityPreferenceKey(dexLang), entry).commit()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
val dataSaverPref = SwitchPreferenceCompat(screen.context).apply {
|
||||
key = MDConstants.getDataSaverPreferenceKey(dexLang)
|
||||
title = "Data saver"
|
||||
|
|
Loading…
Reference in New Issue