Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit d5bcef2

Browse files
committed
feat(youtube): hide-player-buttons patch
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
1 parent 5ca042a commit d5bcef2

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package app.revanced.integrations.patches;
2+
3+
4+
import app.revanced.integrations.settings.SettingsEnum;
5+
6+
public final class HidePlayerButtonsPatch {
7+
8+
public static boolean hideButtons() {
9+
return SettingsEnum.HIDE_PLAYER_BUTTONS.getBoolean();
10+
}
11+
}

app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public enum SettingsEnum {
8888
HIDE_TIME_AND_SEEKBAR("revanced_hide_time_and_seekbar", false, ReturnType.BOOLEAN),
8989
HIDE_WATCH_IN_VR("revanced_hide_watch_in_vr", false, ReturnType.BOOLEAN, true),
9090
HIDE_BREAKING_NEWS("revanced_hide_breaking_news", true, ReturnType.BOOLEAN, true),
91+
HIDE_PLAYER_BUTTONS("revanced_hide_player_buttons", false, ReturnType.BOOLEAN, false),
9192

9293
// Misc. Settings
9394
FIX_PLAYBACK("revanced_fix_playback", false, ReturnType.BOOLEAN, false),

0 commit comments

Comments
 (0)