Skip to content

Commit

Permalink
feat: disable-auto-captions patch (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
OxrxL committed Sep 15, 2022
1 parent c82a85b commit 233d332
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Expand Up @@ -2,9 +2,11 @@

import app.revanced.integrations.settings.SettingsEnum;

public class ForceDisableCaptionsPatch {

public static boolean captionsEnabled() {
public class DisableAutoCaptionsPatch {

public static boolean captionsButtonDisabled;

public static boolean autoCaptionsEnabled() {
return SettingsEnum.CAPTIONS_ENABLED.getBoolean();
}

Expand Down
Expand Up @@ -60,8 +60,7 @@ public enum SettingsEnum {
FULLSCREEN_PANELS_SHOWN("revanced_fullscreen_panels_enabled", false, ReturnType.BOOLEAN), //ToDo: Add to prefs

//Misc. Settings
//ToDo: Not used atm, Patch missing
CAPTIONS_ENABLED("revanced_pref_captions", false, ReturnType.BOOLEAN),
CAPTIONS_ENABLED("revanced_autocaptions_enabled", false, ReturnType.BOOLEAN, false),
PREFERRED_AUTO_REPEAT("revanced_pref_auto_repeat", false, ReturnType.BOOLEAN),
USE_HDR_AUTO_BRIGHTNESS("revanced_pref_hdr_autobrightness", true, ReturnType.BOOLEAN),
TAP_SEEKING_ENABLED("revanced_enable_tap_seeking", true, ReturnType.BOOLEAN),
Expand Down

0 comments on commit 233d332

Please sign in to comment.