-
-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(youtube):
hide-mix-playlists
patch (#177)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
- Loading branch information
1 parent
658e11a
commit 0e6a92f
Showing
2 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
app/src/main/java/app/revanced/integrations/patches/HideMixPlaylistsPatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package app.revanced.integrations.patches; | ||
|
||
import android.view.View; | ||
|
||
import app.revanced.integrations.adremover.AdRemoverAPI; | ||
import app.revanced.integrations.settings.SettingsEnum; | ||
|
||
public class HideMixPlaylistsPatch { | ||
|
||
public static void hideMixPlaylists(View view) { | ||
if (!SettingsEnum.HIDE_MIX_PLAYLISTS.getBoolean()) return; | ||
AdRemoverAPI.HideViewWithLayout1dp(view); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters