fix(youtube/general-ads): hide bytecode home ad view

This commit is contained in:
oSumAtrIX 2022-11-20 23:55:15 +01:00
parent b8f0e632c1
commit c3e88c79e9
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -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);
}
}