Skip to content

Commit

Permalink
feat: hide-watch-in-vr patch (ReVanced#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed Oct 30, 2022
1 parent 889a7d8 commit fb20ae1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit fb20ae1

Please sign in to comment.