diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/HideAlbumCardsPatch.java b/app/src/main/java/app/revanced/integrations/youtube/patches/HideAlbumCardsPatch.java deleted file mode 100644 index e0d8519446..0000000000 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/HideAlbumCardsPatch.java +++ /dev/null @@ -1,14 +0,0 @@ -package app.revanced.integrations.youtube.patches; - -import android.view.View; - -import app.revanced.integrations.youtube.settings.Settings; -import app.revanced.integrations.shared.Utils; - -@SuppressWarnings("unused") -public class HideAlbumCardsPatch { - public static void hideAlbumCard(View view) { - if (!Settings.HIDE_ALBUM_CARDS.get()) return; - Utils.hideViewByLayoutParams(view); - } -} \ No newline at end of file diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/components/LayoutComponentsFilter.java b/app/src/main/java/app/revanced/integrations/youtube/patches/components/LayoutComponentsFilter.java index d8120660b9..93b0543a78 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/components/LayoutComponentsFilter.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/components/LayoutComponentsFilter.java @@ -383,6 +383,12 @@ public static boolean showWatermark() { return !Settings.HIDE_VIDEO_CHANNEL_WATERMARK.get(); } + /** + * Injection point. + */ + public static void hideAlbumCard(View view) { + Utils.hideViewBy0dpUnderCondition(Settings.HIDE_ALBUM_CARDS, view); + } private static final boolean HIDE_DOODLES_ENABLED = Settings.HIDE_DOODLES.get();