From 2003b910b12cba445822bfaede7975e00220a81a Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Thu, 21 Dec 2023 15:32:17 +0100 Subject: [PATCH] fix(Tiktok - Remember clear display): Use correct name --- .../cleardisplay/RememberClearDisplayPatch.java | 12 ++++++++++++ .../tiktok/clearmode/RememberClearModePatch.java | 12 ------------ .../app/revanced/tiktok/settings/SettingsEnum.java | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 app/src/main/java/app/revanced/tiktok/cleardisplay/RememberClearDisplayPatch.java delete mode 100644 app/src/main/java/app/revanced/tiktok/clearmode/RememberClearModePatch.java diff --git a/app/src/main/java/app/revanced/tiktok/cleardisplay/RememberClearDisplayPatch.java b/app/src/main/java/app/revanced/tiktok/cleardisplay/RememberClearDisplayPatch.java new file mode 100644 index 00000000..b9171f3c --- /dev/null +++ b/app/src/main/java/app/revanced/tiktok/cleardisplay/RememberClearDisplayPatch.java @@ -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); + } +} diff --git a/app/src/main/java/app/revanced/tiktok/clearmode/RememberClearModePatch.java b/app/src/main/java/app/revanced/tiktok/clearmode/RememberClearModePatch.java deleted file mode 100644 index 6f123561..00000000 --- a/app/src/main/java/app/revanced/tiktok/clearmode/RememberClearModePatch.java +++ /dev/null @@ -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); - } -} diff --git a/app/src/main/java/app/revanced/tiktok/settings/SettingsEnum.java b/app/src/main/java/app/revanced/tiktok/settings/SettingsEnum.java index a93fd317..4b6d93f2 100644 --- a/app/src/main/java/app/revanced/tiktok/settings/SettingsEnum.java +++ b/app/src/main/java/app/revanced/tiktok/settings/SettingsEnum.java @@ -25,7 +25,7 @@ public enum SettingsEnum { MIN_MAX_LIKES("min_max_likes", STRING, "0-" + Long.MAX_VALUE, true), DOWNLOAD_PATH("down_path", STRING, "DCIM/TikTok"), 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_ISO("simspoof_iso", STRING, "us"), SIMSPOOF_MCCMNC("simspoof_mccmnc", STRING, "310160"),