fix: rename DisableAutoCaptions patch (#91)

This commit is contained in:
TheJeterLP 2022-07-21 17:57:02 +02:00 committed by GitHub
parent 0ea0dbf7ce
commit 2890467ce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 13 deletions

View File

@ -1,12 +0,0 @@
package app.revanced.integrations.patches;
import app.revanced.integrations.settings.SettingsEnum;
public class DisableAutoCaptions {
//ToDo: Write Patch for it
public static boolean autoCaptionsEnabled() {
return SettingsEnum.AUTO_CAPTIONS_ENABLED.getBoolean();
}
}

View File

@ -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();
}
}

View File

@ -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),