Fixed MangaDex content rating preferences being swapped (#8784)

This commit is contained in:
loocool2 2021-08-24 03:42:31 -07:00 committed by GitHub
parent 42f6a32163
commit 4d1bc517f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'MangaDex'
pkgNameSuffix = 'all.mangadex'
extClass = '.MangaDexFactory'
extVersionCode = 127
extVersionCode = 128
libVersion = '1.2'
containsNsfw = true
}

View File

@ -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
)
) {