From 4d1bc517f2ef215485645798c3d0d5f07cb080b6 Mon Sep 17 00:00:00 2001 From: loocool2 <36128021+loocool2@users.noreply.github.com> Date: Tue, 24 Aug 2021 03:42:31 -0700 Subject: [PATCH] Fixed MangaDex content rating preferences being swapped (#8784) --- src/all/mangadex/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/all/mangadex/build.gradle b/src/all/mangadex/build.gradle index 9622a2ed9..285cc0e81 100644 --- a/src/all/mangadex/build.gradle +++ b/src/all/mangadex/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'MangaDex' pkgNameSuffix = 'all.mangadex' extClass = '.MangaDexFactory' - extVersionCode = 127 + extVersionCode = 128 libVersion = '1.2' containsNsfw = true } diff --git a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt index 7014b0b54..d57d56999 100644 --- a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt +++ b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt @@ -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"