mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-02-08 01:56:47 +01:00
fix: logic in VideoAdsPatch
(#116)
This commit is contained in:
parent
8b2b00dd97
commit
f474541094
@ -5,10 +5,10 @@ import app.revanced.integrations.whitelist.Whitelist;
|
|||||||
|
|
||||||
public class VideoAdsPatch {
|
public class VideoAdsPatch {
|
||||||
|
|
||||||
//Used by app.revanced.patches.youtube.ad.general.video.patch.VideoAdsPatch
|
// Used by app.revanced.patches.youtube.ad.general.video.patch.VideoAdsPatch
|
||||||
//depends on Whitelist Patch. Still needs to be written
|
// depends on Whitelist patch (still needs to be written)
|
||||||
public static boolean shouldShowAds() {
|
public static boolean shouldShowAds() {
|
||||||
return SettingsEnum.VIDEO_ADS_SHOWN.getBoolean() && Whitelist.shouldShowAds();
|
return SettingsEnum.VIDEO_ADS_SHOWN.getBoolean() || Whitelist.shouldShowAds();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user