mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-16 06:47:32 +01:00
feat: hide-album-cards
patch (#184)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
7014518673
commit
74c96beb20
@ -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 HideAlbumCardsPatch {
|
||||||
|
//Used by app.revanced.patches.youtube.layout.hidealbumcards.patch.HideAlbumCardsPatch
|
||||||
|
public static void hideAlbumCards(View view) {
|
||||||
|
if (!SettingsEnum.HIDE_ALBUM_CARDS.getBoolean()) return;
|
||||||
|
AdRemoverAPI.HideViewWithLayout1dp(view);
|
||||||
|
}
|
||||||
|
}
|
@ -73,6 +73,7 @@ public enum SettingsEnum {
|
|||||||
HIDE_CAPTIONS_BUTTON("revanced_hide_captions_button", false, ReturnType.BOOLEAN),
|
HIDE_CAPTIONS_BUTTON("revanced_hide_captions_button", false, ReturnType.BOOLEAN),
|
||||||
HIDE_MIX_PLAYLISTS("revanced_mix_playlists_hidden", false, ReturnType.BOOLEAN, true),
|
HIDE_MIX_PLAYLISTS("revanced_mix_playlists_hidden", false, ReturnType.BOOLEAN, true),
|
||||||
HIDE_CROWDFUNDING_BOX("revanced_hide_crowdfunding_box", false, ReturnType.BOOLEAN, true),
|
HIDE_CROWDFUNDING_BOX("revanced_hide_crowdfunding_box", false, ReturnType.BOOLEAN, true),
|
||||||
|
HIDE_ALBUM_CARDS("revanced_hide_album_cards", false, ReturnType.BOOLEAN, true),
|
||||||
HIDE_ARTIST_CARD("revanced_hide_artist_card", false, ReturnType.BOOLEAN),
|
HIDE_ARTIST_CARD("revanced_hide_artist_card", false, ReturnType.BOOLEAN),
|
||||||
|
|
||||||
// Misc. Settings
|
// Misc. Settings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user