diff --git a/app/src/main/java/app/revanced/integrations/patches/HidePlayerButtonsPatch.java b/app/src/main/java/app/revanced/integrations/patches/HidePlayerButtonsPatch.java index 31d546b0..466f0a71 100644 --- a/app/src/main/java/app/revanced/integrations/patches/HidePlayerButtonsPatch.java +++ b/app/src/main/java/app/revanced/integrations/patches/HidePlayerButtonsPatch.java @@ -1,11 +1,16 @@ package app.revanced.integrations.patches; - import app.revanced.integrations.settings.SettingsEnum; public final class HidePlayerButtonsPatch { - public static boolean hideButtons() { - return SettingsEnum.HIDE_PLAYER_BUTTONS.getBoolean(); + /** + * Injection point. + */ + public static boolean previousOrNextButtonIsVisible(boolean previousOrNextButtonVisible) { + if (SettingsEnum.HIDE_PLAYER_BUTTONS.getBoolean()) { + return false; + } + return previousOrNextButtonVisible; } }