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

Commit 149a90a

Browse files
author
OxrxL
authored
feat: disable-startup-shorts-player patch (#164)
1 parent 2d001cf commit 149a90a

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package app.revanced.integrations.patches;
2+
3+
import app.revanced.integrations.settings.SettingsEnum;
4+
5+
public class DisableStartupShortsPlayerPatch {
6+
//Used by app.revanced.patches.youtube.layout.startupshortsreset.patch.DisableShortsOnStartupPatch
7+
public static boolean disableStartupShortsPlayer() {
8+
return SettingsEnum.DISABLE_STARTUP_SHORTS_PLAYER.getBoolean();
9+
}
10+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public enum SettingsEnum {
6060
PLAYER_POPUP_PANELS("revanced_player_popup_panels_enabled", false, ReturnType.BOOLEAN),
6161
HIDE_TIME_AND_SEEKBAR("revanced_hide_time_and_seekbar", false, ReturnType.BOOLEAN),
6262
HIDE_EMAIL_ADDRESS("revanced_hide_email_address", false, ReturnType.BOOLEAN),
63+
DISABLE_STARTUP_SHORTS_PLAYER("revanced_startup_shorts_player_enabled", false, ReturnType.BOOLEAN),
6364

6465
//Misc. Settings
6566
CAPTIONS_ENABLED("revanced_autocaptions_enabled", false, ReturnType.BOOLEAN, false),

0 commit comments

Comments
 (0)