Skip to content

Commit

Permalink
feat: disable-startup-shorts-player patch (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
OxrxL committed Sep 29, 2022
1 parent 2d001cf commit 149a90a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
@@ -0,0 +1,10 @@
package app.revanced.integrations.patches;

import app.revanced.integrations.settings.SettingsEnum;

public class DisableStartupShortsPlayerPatch {
//Used by app.revanced.patches.youtube.layout.startupshortsreset.patch.DisableShortsOnStartupPatch
public static boolean disableStartupShortsPlayer() {
return SettingsEnum.DISABLE_STARTUP_SHORTS_PLAYER.getBoolean();
}
}
Expand Up @@ -60,6 +60,7 @@ public enum SettingsEnum {
PLAYER_POPUP_PANELS("revanced_player_popup_panels_enabled", false, ReturnType.BOOLEAN),
HIDE_TIME_AND_SEEKBAR("revanced_hide_time_and_seekbar", false, ReturnType.BOOLEAN),
HIDE_EMAIL_ADDRESS("revanced_hide_email_address", false, ReturnType.BOOLEAN),
DISABLE_STARTUP_SHORTS_PLAYER("revanced_startup_shorts_player_enabled", false, ReturnType.BOOLEAN),

//Misc. Settings
CAPTIONS_ENABLED("revanced_autocaptions_enabled", false, ReturnType.BOOLEAN, false),
Expand Down

0 comments on commit 149a90a

Please sign in to comment.