Skip to content

Commit

Permalink
fix: logic in VideoAdsPatch (ReVanced#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
epicsampler authored Aug 3, 2022
1 parent 8b2b00d commit f474541
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

public class VideoAdsPatch {

//Used by app.revanced.patches.youtube.ad.general.video.patch.VideoAdsPatch
//depends on Whitelist Patch. Still needs to be written
// Used by app.revanced.patches.youtube.ad.general.video.patch.VideoAdsPatch
// depends on Whitelist patch (still needs to be written)
public static boolean shouldShowAds() {
return SettingsEnum.VIDEO_ADS_SHOWN.getBoolean() && Whitelist.shouldShowAds();
return SettingsEnum.VIDEO_ADS_SHOWN.getBoolean() || Whitelist.shouldShowAds();
}

}

0 comments on commit f474541

Please sign in to comment.