diff --git a/app/src/main/java/eu/faircode/email/ApplicationEx.java b/app/src/main/java/eu/faircode/email/ApplicationEx.java
index 84971cd29e..9f0fffdd34 100644
--- a/app/src/main/java/eu/faircode/email/ApplicationEx.java
+++ b/app/src/main/java/eu/faircode/email/ApplicationEx.java
@@ -319,7 +319,7 @@ public class ApplicationEx extends Application
editor.remove("crash_report_count");
if (!BuildConfig.TEST_RELEASE)
- editor.remove("test1").remove("test2").remove("test3");
+ editor.remove("test1").remove("test2").remove("test3").remove("test4").remove("test5");
if (version < 468) {
editor.remove("notify_trash");
diff --git a/app/src/main/java/eu/faircode/email/FragmentOptions.java b/app/src/main/java/eu/faircode/email/FragmentOptions.java
index b2548c97c4..add31b3d3f 100644
--- a/app/src/main/java/eu/faircode/email/FragmentOptions.java
+++ b/app/src/main/java/eu/faircode/email/FragmentOptions.java
@@ -145,7 +145,7 @@ public class FragmentOptions extends FragmentBase {
"swipe_reply",
"language_detection",
"quick_filter", "quick_scroll",
- "experiments", "debug", "log_level", "test1", "test2", "test3", "webview_legacy",
+ "experiments", "debug", "log_level", "test1", "test2", "test3", "test4", "test5", "webview_legacy",
"biometrics",
"default_light"
};
diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java
index c334aaf5de..3d25b4a8c2 100644
--- a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java
+++ b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java
@@ -130,6 +130,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
private SwitchCompat swTest1;
private SwitchCompat swTest2;
private SwitchCompat swTest3;
+ private SwitchCompat swTest4;
+ private SwitchCompat swTest5;
private Button btnRepair;
private SwitchCompat swAutostart;
@@ -186,7 +188,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
"language", "deepl_enabled", "watchdog",
"updates", "weekly", "show_changelog",
"experiments", "crash_reports", "cleanup_attachments",
- "protocol", "debug", "log_level", "test1", "test2", "test3",
+ "protocol", "debug", "log_level", "test1", "test2", "test3", "test4", "test5",
"query_threads", "wal", "checkpoints", "sqlite_cache",
"chunk_size", "webview_legacy",
"use_modseq", "perform_expunge", "uid_expunge",
@@ -273,6 +275,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
swTest1 = view.findViewById(R.id.swTest1);
swTest2 = view.findViewById(R.id.swTest2);
swTest3 = view.findViewById(R.id.swTest3);
+ swTest4 = view.findViewById(R.id.swTest4);
+ swTest5 = view.findViewById(R.id.swTest5);
btnRepair = view.findViewById(R.id.btnRepair);
swAutostart = view.findViewById(R.id.swAutostart);
@@ -690,6 +694,20 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
}
});
+ swTest4.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
+ @Override
+ public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
+ prefs.edit().putBoolean("test4", checked).apply();
+ }
+ });
+
+ swTest5.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
+ @Override
+ public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
+ prefs.edit().putBoolean("test5", checked).apply();
+ }
+ });
+
btnRepair.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
@@ -1401,6 +1419,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
swTest1.setChecked(prefs.getBoolean("test1", false));
swTest2.setChecked(prefs.getBoolean("test2", false));
swTest3.setChecked(prefs.getBoolean("test3", false));
+ swTest4.setChecked(prefs.getBoolean("test4", false));
+ swTest5.setChecked(prefs.getBoolean("test5", false));
swAutostart.setChecked(Helper.isComponentEnabled(getContext(), ReceiverAutoStart.class));
diff --git a/app/src/main/res/layout/fragment_options_misc.xml b/app/src/main/res/layout/fragment_options_misc.xml
index ed86bde735..c44e1ee11b 100644
--- a/app/src/main/res/layout/fragment_options_misc.xml
+++ b/app/src/main/res/layout/fragment_options_misc.xml
@@ -613,6 +613,28 @@
app:layout_constraintTop_toBottomOf="@id/swTest2"
app:switchPadding="12dp" />
+
+
+
+
Test #1
Test #2
Test #3
+ Test #4
+ Test #5
Repair
Autostart
ROOM query threads: %1$s