Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit c3e88c7

Browse files
committed
fix(youtube/general-ads): hide bytecode home ad view
1 parent b8f0e63 commit c3e88c7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

app/src/main/java/app/revanced/integrations/patches/GeneralAdsPatch.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,14 @@ private enum BlockResult {
136136
this.message = message;
137137
}
138138
}
139+
140+
/**
141+
* Hide the specific view, which shows ads in the homepage.
142+
*
143+
* @param view The view, which shows ads.
144+
*/
145+
public static void hideAdAttributionView(View view) {
146+
if (!SettingsEnum.ADREMOVER_GENERAL_ADS_REMOVAL.getBoolean()) return;
147+
AdRemoverAPI.HideViewWithLayout1dp(view);
148+
}
139149
}

0 commit comments

Comments
 (0)