mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-02 16:15:58 +01:00
fix(youtube/hide-player-buttons): fix previous/next button showing if previous video exists (#412)
This commit is contained in:
parent
301a0327bc
commit
60f25a2af0
@ -1,11 +1,16 @@
|
|||||||
package app.revanced.integrations.patches;
|
package app.revanced.integrations.patches;
|
||||||
|
|
||||||
|
|
||||||
import app.revanced.integrations.settings.SettingsEnum;
|
import app.revanced.integrations.settings.SettingsEnum;
|
||||||
|
|
||||||
public final class HidePlayerButtonsPatch {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user