From d5bcef2cdbe5dfdb1ad2552e7fde339cee1a3f27 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 3 Feb 2023 04:39:38 +0100 Subject: [PATCH] feat(youtube): `hide-player-buttons` patch Signed-off-by: oSumAtrIX --- .../integrations/patches/HidePlayerButtonsPatch.java | 11 +++++++++++ .../revanced/integrations/settings/SettingsEnum.java | 1 + 2 files changed, 12 insertions(+) create mode 100644 app/src/main/java/app/revanced/integrations/patches/HidePlayerButtonsPatch.java diff --git a/app/src/main/java/app/revanced/integrations/patches/HidePlayerButtonsPatch.java b/app/src/main/java/app/revanced/integrations/patches/HidePlayerButtonsPatch.java new file mode 100644 index 00000000..31d546b0 --- /dev/null +++ b/app/src/main/java/app/revanced/integrations/patches/HidePlayerButtonsPatch.java @@ -0,0 +1,11 @@ +package app.revanced.integrations.patches; + + +import app.revanced.integrations.settings.SettingsEnum; + +public final class HidePlayerButtonsPatch { + + public static boolean hideButtons() { + return SettingsEnum.HIDE_PLAYER_BUTTONS.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 2c56b42d..5b4c0dbb 100644 --- a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java +++ b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java @@ -88,6 +88,7 @@ public enum SettingsEnum { HIDE_TIME_AND_SEEKBAR("revanced_hide_time_and_seekbar", false, ReturnType.BOOLEAN), HIDE_WATCH_IN_VR("revanced_hide_watch_in_vr", false, ReturnType.BOOLEAN, true), HIDE_BREAKING_NEWS("revanced_hide_breaking_news", true, ReturnType.BOOLEAN, true), + HIDE_PLAYER_BUTTONS("revanced_hide_player_buttons", false, ReturnType.BOOLEAN, false), // Misc. Settings FIX_PLAYBACK("revanced_fix_playback", false, ReturnType.BOOLEAN, false),