Skip to content

Commit

Permalink
fix(youtube/general-ads): hide bytecode home ad view
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Nov 20, 2022
1 parent b8f0e63 commit c3e88c7
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -136,4 +136,14 @@ private enum BlockResult {
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);
}
}

0 comments on commit c3e88c7

Please sign in to comment.