Skip to content

Commit

Permalink
feat(Tiktok): Add Remember clear mode patch (#544)
Browse files Browse the repository at this point in the history
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
  • Loading branch information
d4rkk3y and oSumAtrIX authored Dec 21, 2023
1 parent 45dd26c commit 05eddb6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +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),
SIM_SPOOF("simspoof", BOOLEAN, TRUE, true),
SIM_SPOOF_ISO("simspoof_iso", STRING, "us"),
SIMSPOOF_MCCMNC("simspoof_mccmnc", STRING, "310160"),
Expand Down

0 comments on commit 05eddb6

Please sign in to comment.