fix(Tiktok - Remember clear display): Use correct name

This commit is contained in:
oSumAtrIX 2023-12-21 15:32:17 +01:00
parent 10dfa6d695
commit 2003b910b1
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
3 changed files with 13 additions and 13 deletions

View File

@ -0,0 +1,12 @@
package app.revanced.tiktok.cleardisplay;
import app.revanced.tiktok.settings.SettingsEnum;
public class RememberClearDisplayPatch {
public static boolean getClearDisplayState() {
return SettingsEnum.CLEAR_DISPLAY.getBoolean();
}
public static void rememberClearDisplayState(boolean newState) {
SettingsEnum.CLEAR_DISPLAY.saveValue(newState);
}
}

View File

@ -1,12 +0,0 @@
package app.revanced.tiktok.clearmode;
import app.revanced.tiktok.settings.SettingsEnum;
public class RememberClearModePatch {
public static boolean getClearModeState() {
return SettingsEnum.CLEAR_MODE.getBoolean();
}
public static void rememberClearModeState(boolean newState) {
SettingsEnum.CLEAR_MODE.saveValue(newState);
}
}

View File

@ -25,7 +25,7 @@ public enum SettingsEnum {
MIN_MAX_LIKES("min_max_likes", STRING, "0-" + Long.MAX_VALUE, true), MIN_MAX_LIKES("min_max_likes", STRING, "0-" + Long.MAX_VALUE, true),
DOWNLOAD_PATH("down_path", STRING, "DCIM/TikTok"), DOWNLOAD_PATH("down_path", STRING, "DCIM/TikTok"),
DOWNLOAD_WATERMARK("down_watermark", BOOLEAN, TRUE), DOWNLOAD_WATERMARK("down_watermark", BOOLEAN, TRUE),
CLEAR_MODE("clear_mode", BOOLEAN, FALSE), CLEAR_DISPLAY("clear_display", BOOLEAN, FALSE),
SIM_SPOOF("simspoof", BOOLEAN, TRUE, true), SIM_SPOOF("simspoof", BOOLEAN, TRUE, true),
SIM_SPOOF_ISO("simspoof_iso", STRING, "us"), SIM_SPOOF_ISO("simspoof_iso", STRING, "us"),
SIMSPOOF_MCCMNC("simspoof_mccmnc", STRING, "310160"), SIMSPOOF_MCCMNC("simspoof_mccmnc", STRING, "310160"),