Skip to content

Commit

Permalink
fix: rename DisableAutoCaptions patch (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJeterLP committed Jul 21, 2022
1 parent 0ea0dbf commit 2890467
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package app.revanced.integrations.patches;

import app.revanced.integrations.settings.SettingsEnum;

public class ForceDisableCaptions {

//ToDo: Write Patch for it
public static boolean captionsEnabled() {
return SettingsEnum.CAPTIONS_ENABLED.getBoolean();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public enum SettingsEnum {

//Misc. Settings
AUTOREPEAT_BUTTON_SHOWN("revanced_pref_auto_repeat_button", false, ReturnType.BOOLEAN),
AUTO_CAPTIONS_ENABLED("revanced_pref_auto_captions", false, ReturnType.BOOLEAN),
CAPTIONS_ENABLED("revanced_pref_captions", false, ReturnType.BOOLEAN),
PREFERRED_AUTO_REPEAT("revanced_pref_auto_repeat", true, 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 2890467

Please sign in to comment.