|
|
@ -176,6 +176,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
private Button btnRepair;
|
|
|
|
private Button btnRepair;
|
|
|
|
private Button btnDaily;
|
|
|
|
private Button btnDaily;
|
|
|
|
private SwitchCompat swAutostart;
|
|
|
|
private SwitchCompat swAutostart;
|
|
|
|
|
|
|
|
private SwitchCompat swEmergency;
|
|
|
|
private SwitchCompat swWorkManager;
|
|
|
|
private SwitchCompat swWorkManager;
|
|
|
|
private SwitchCompat swExternalStorage;
|
|
|
|
private SwitchCompat swExternalStorage;
|
|
|
|
private TextView tvExternalStorageFolder;
|
|
|
|
private TextView tvExternalStorageFolder;
|
|
|
@ -262,7 +263,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
"crash_reports", "cleanup_attachments",
|
|
|
|
"crash_reports", "cleanup_attachments",
|
|
|
|
"watchdog", "experiments", "main_log", "main_log_memory", "protocol", "log_level", "debug", "leak_canary",
|
|
|
|
"watchdog", "experiments", "main_log", "main_log_memory", "protocol", "log_level", "debug", "leak_canary",
|
|
|
|
"test1", "test2", "test3", "test4", "test5",
|
|
|
|
"test1", "test2", "test3", "test4", "test5",
|
|
|
|
"work_manager", // "external_storage",
|
|
|
|
"emergency_file", "work_manager", // "external_storage",
|
|
|
|
"sqlite_integrity_check", "wal", "sqlite_checkpoints", "sqlite_analyze", "sqlite_auto_vacuum", "sqlite_sync_extra", "sqlite_cache",
|
|
|
|
"sqlite_integrity_check", "wal", "sqlite_checkpoints", "sqlite_analyze", "sqlite_auto_vacuum", "sqlite_sync_extra", "sqlite_cache",
|
|
|
|
"chunk_size", "thread_range", "undo_manager",
|
|
|
|
"chunk_size", "thread_range", "undo_manager",
|
|
|
|
"browser_zoom", "fake_dark",
|
|
|
|
"browser_zoom", "fake_dark",
|
|
|
@ -395,6 +396,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
btnRepair = view.findViewById(R.id.btnRepair);
|
|
|
|
btnRepair = view.findViewById(R.id.btnRepair);
|
|
|
|
btnDaily = view.findViewById(R.id.btnDaily);
|
|
|
|
btnDaily = view.findViewById(R.id.btnDaily);
|
|
|
|
swAutostart = view.findViewById(R.id.swAutostart);
|
|
|
|
swAutostart = view.findViewById(R.id.swAutostart);
|
|
|
|
|
|
|
|
swEmergency = view.findViewById(R.id.swEmergency);
|
|
|
|
swWorkManager = view.findViewById(R.id.swWorkManager);
|
|
|
|
swWorkManager = view.findViewById(R.id.swWorkManager);
|
|
|
|
swExternalStorage = view.findViewById(R.id.swExternalStorage);
|
|
|
|
swExternalStorage = view.findViewById(R.id.swExternalStorage);
|
|
|
|
tvExternalStorageFolder = view.findViewById(R.id.tvExternalStorageFolder);
|
|
|
|
tvExternalStorageFolder = view.findViewById(R.id.tvExternalStorageFolder);
|
|
|
@ -1197,6 +1199,13 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swEmergency.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton v, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit().putBoolean("emergency_file", checked).apply();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
swWorkManager.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
swWorkManager.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
|
|
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
|
|
@ -2205,6 +2214,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
swTest5.setChecked(prefs.getBoolean("test5", false));
|
|
|
|
swTest5.setChecked(prefs.getBoolean("test5", false));
|
|
|
|
|
|
|
|
|
|
|
|
swAutostart.setChecked(Helper.isComponentEnabled(getContext(), ReceiverAutoStart.class));
|
|
|
|
swAutostart.setChecked(Helper.isComponentEnabled(getContext(), ReceiverAutoStart.class));
|
|
|
|
|
|
|
|
swEmergency.setChecked(prefs.getBoolean("emergency_file", true));
|
|
|
|
swWorkManager.setChecked(prefs.getBoolean("work_manager", true));
|
|
|
|
swWorkManager.setChecked(prefs.getBoolean("work_manager", true));
|
|
|
|
swExternalStorage.setChecked(prefs.getBoolean("external_storage", false));
|
|
|
|
swExternalStorage.setChecked(prefs.getBoolean("external_storage", false));
|
|
|
|
|
|
|
|
|
|
|
|