Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit 2890467

Browse files
authored
fix: rename DisableAutoCaptions patch (#91)
1 parent 0ea0dbf commit 2890467

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

app/src/main/java/app/revanced/integrations/patches/DisableAutoCaptions.java

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package app.revanced.integrations.patches;
2+
3+
import app.revanced.integrations.settings.SettingsEnum;
4+
5+
public class ForceDisableCaptions {
6+
7+
//ToDo: Write Patch for it
8+
public static boolean captionsEnabled() {
9+
return SettingsEnum.CAPTIONS_ENABLED.getBoolean();
10+
}
11+
12+
}

app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public enum SettingsEnum {
6161

6262
//Misc. Settings
6363
AUTOREPEAT_BUTTON_SHOWN("revanced_pref_auto_repeat_button", false, ReturnType.BOOLEAN),
64-
AUTO_CAPTIONS_ENABLED("revanced_pref_auto_captions", false, ReturnType.BOOLEAN),
64+
CAPTIONS_ENABLED("revanced_pref_captions", false, ReturnType.BOOLEAN),
6565
PREFERRED_AUTO_REPEAT("revanced_pref_auto_repeat", true, ReturnType.BOOLEAN),
6666
USE_HDR_AUTO_BRIGHTNESS("revanced_pref_hdr_autobrightness", true, ReturnType.BOOLEAN),
6767
TAP_SEEKING_ENABLED("revanced_enable_tap_seeking", true, ReturnType.BOOLEAN),

0 commit comments

Comments
 (0)