diff --git a/app/src/main/java/app/revanced/integrations/patches/GeneralAdsPatch.java b/app/src/main/java/app/revanced/integrations/patches/GeneralAdsPatch.java index 4c6c4309..08ea30ed 100644 --- a/app/src/main/java/app/revanced/integrations/patches/GeneralAdsPatch.java +++ b/app/src/main/java/app/revanced/integrations/patches/GeneralAdsPatch.java @@ -136,4 +136,14 @@ public final class GeneralAdsPatch extends Filter { this.message = message; } } + + /** + * Hide the specific view, which shows ads in the homepage. + * + * @param view The view, which shows ads. + */ + public static void hideAdAttributionView(View view) { + if (!SettingsEnum.ADREMOVER_GENERAL_ADS_REMOVAL.getBoolean()) return; + AdRemoverAPI.HideViewWithLayout1dp(view); + } }