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