feat(YouTube Music/Hide general ads): remove Close interstitial ads settings

This commit is contained in:
inotia00
2023-12-23 16:36:25 +09:00
parent 26c23e137c
commit 7dc0108859
2 changed files with 3 additions and 11 deletions

View File

@ -47,6 +47,9 @@ object GeneralAdsPatch : BytecodePatch(
NotifierShelfFingerprint
)
) {
private const val FILTER_CLASS_DESCRIPTOR =
"$COMPONENTS_PATH/AdsFilter;"
override fun execute(context: BytecodeContext) {
LithoFilterPatch.addFilter(FILTER_CLASS_DESCRIPTOR)
@ -117,11 +120,6 @@ object GeneralAdsPatch : BytecodePatch(
}
} ?: throw NotifierShelfFingerprint.exception
SettingsPatch.addMusicPreference(
CategoryType.ADS,
"revanced_close_interstitial_ads",
"true"
)
SettingsPatch.addMusicPreference(
CategoryType.ADS,
"revanced_hide_interstitial_ads",
@ -148,7 +146,4 @@ object GeneralAdsPatch : BytecodePatch(
"true"
)
}
private const val FILTER_CLASS_DESCRIPTOR =
"$COMPONENTS_PATH/AdsFilter;"
}