From fb20ae19e868032b29c90039bff66e7cafa2d972 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Sun, 30 Oct 2022 21:02:22 +0900 Subject: [PATCH] feat: `hide-watch-in-vr` patch (#191) --- .../integrations/patches/HideWatchinVRPatch.java | 10 ++++++++++ .../revanced/integrations/settings/SettingsEnum.java | 1 + 2 files changed, 11 insertions(+) create mode 100644 app/src/main/java/app/revanced/integrations/patches/HideWatchinVRPatch.java diff --git a/app/src/main/java/app/revanced/integrations/patches/HideWatchinVRPatch.java b/app/src/main/java/app/revanced/integrations/patches/HideWatchinVRPatch.java new file mode 100644 index 00000000..9d3b9cc7 --- /dev/null +++ b/app/src/main/java/app/revanced/integrations/patches/HideWatchinVRPatch.java @@ -0,0 +1,10 @@ +package app.revanced.integrations.patches; + +import app.revanced.integrations.settings.SettingsEnum; + +public class HideWatchinVRPatch { + //Used by app.revanced.patches.youtube.layout.watchinvr.patch.HideWatchinVRPatch + public static boolean hideWatchinVR() { + return SettingsEnum.HIDE_WATCH_IN_VR.getBoolean(); + } +} diff --git a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java index a7d49101..8857cf91 100644 --- a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java +++ b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java @@ -77,6 +77,7 @@ public enum SettingsEnum { HIDE_PREVIEW_COMMENT("revanced_hide_preview_comment", 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_WATCH_IN_VR("revanced_hide_watch_in_vr", false, ReturnType.BOOLEAN, true), // Misc. Settings CAPTIONS_ENABLED("revanced_autocaptions_enabled", false, ReturnType.BOOLEAN, false),