From 8b5d2d1871c19421eb39ce38a7039c86e5d8d08b Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Fri, 17 Nov 2023 12:21:59 +0200 Subject: [PATCH] fix(YouTube - Disable resuming Shorts on startup): Adjust patch name (#516) --- .../DisableResumingStartupShortsPlayerPatch.java | 14 ++++++++++++++ .../patches/DisableStartupShortsPlayerPatch.java | 10 ---------- 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 app/src/main/java/app/revanced/integrations/patches/DisableResumingStartupShortsPlayerPatch.java delete mode 100644 app/src/main/java/app/revanced/integrations/patches/DisableStartupShortsPlayerPatch.java diff --git a/app/src/main/java/app/revanced/integrations/patches/DisableResumingStartupShortsPlayerPatch.java b/app/src/main/java/app/revanced/integrations/patches/DisableResumingStartupShortsPlayerPatch.java new file mode 100644 index 00000000..0fccefea --- /dev/null +++ b/app/src/main/java/app/revanced/integrations/patches/DisableResumingStartupShortsPlayerPatch.java @@ -0,0 +1,14 @@ +package app.revanced.integrations.patches; + +import app.revanced.integrations.settings.SettingsEnum; + +/** @noinspection unused*/ +public class DisableResumingStartupShortsPlayerPatch { + + /** + * Injection point. + */ + public static boolean disableResumingStartupShortsPlayer() { + return SettingsEnum.DISABLE_RESUMING_SHORTS_PLAYER.getBoolean(); + } +} diff --git a/app/src/main/java/app/revanced/integrations/patches/DisableStartupShortsPlayerPatch.java b/app/src/main/java/app/revanced/integrations/patches/DisableStartupShortsPlayerPatch.java deleted file mode 100644 index aa8c4cf3..00000000 --- a/app/src/main/java/app/revanced/integrations/patches/DisableStartupShortsPlayerPatch.java +++ /dev/null @@ -1,10 +0,0 @@ -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_RESUMING_SHORTS_PLAYER.getBoolean(); - } -}