mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-21 17:27:32 +01:00
fix(youtube/general-ads): hide bytecode home ad view
This commit is contained in:
parent
b8f0e632c1
commit
c3e88c79e9
@ -136,4 +136,14 @@ public final class GeneralAdsPatch extends Filter {
|
|||||||
this.message = message;
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user