|
|
@ -164,6 +164,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
private TextView tvRoomQueryThreads;
|
|
|
|
private TextView tvRoomQueryThreads;
|
|
|
|
private SeekBar sbRoomQueryThreads;
|
|
|
|
private SeekBar sbRoomQueryThreads;
|
|
|
|
private ImageButton ibRoom;
|
|
|
|
private ImageButton ibRoom;
|
|
|
|
|
|
|
|
private SwitchCompat swIntegrity;
|
|
|
|
private SwitchCompat swWal;
|
|
|
|
private SwitchCompat swWal;
|
|
|
|
private SwitchCompat swCheckpoints;
|
|
|
|
private SwitchCompat swCheckpoints;
|
|
|
|
private SwitchCompat swAnalyze;
|
|
|
|
private SwitchCompat swAnalyze;
|
|
|
@ -238,8 +239,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
"watchdog", "experiments", "main_log", "protocol", "log_level", "debug", "leak_canary",
|
|
|
|
"watchdog", "experiments", "main_log", "protocol", "log_level", "debug", "leak_canary",
|
|
|
|
"test1", "test2", "test3", "test4", "test5",
|
|
|
|
"test1", "test2", "test3", "test4", "test5",
|
|
|
|
"work_manager", // "external_storage",
|
|
|
|
"work_manager", // "external_storage",
|
|
|
|
"query_threads", "wal",
|
|
|
|
"query_threads",
|
|
|
|
"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",
|
|
|
|
"webview_legacy", "browser_zoom", "fake_dark",
|
|
|
|
"webview_legacy", "browser_zoom", "fake_dark",
|
|
|
|
"show_recent",
|
|
|
|
"show_recent",
|
|
|
@ -363,6 +364,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
tvRoomQueryThreads = view.findViewById(R.id.tvRoomQueryThreads);
|
|
|
|
tvRoomQueryThreads = view.findViewById(R.id.tvRoomQueryThreads);
|
|
|
|
sbRoomQueryThreads = view.findViewById(R.id.sbRoomQueryThreads);
|
|
|
|
sbRoomQueryThreads = view.findViewById(R.id.sbRoomQueryThreads);
|
|
|
|
ibRoom = view.findViewById(R.id.ibRoom);
|
|
|
|
ibRoom = view.findViewById(R.id.ibRoom);
|
|
|
|
|
|
|
|
swIntegrity = view.findViewById(R.id.swIntegrity);
|
|
|
|
swWal = view.findViewById(R.id.swWal);
|
|
|
|
swWal = view.findViewById(R.id.swWal);
|
|
|
|
swCheckpoints = view.findViewById(R.id.swCheckpoints);
|
|
|
|
swCheckpoints = view.findViewById(R.id.swCheckpoints);
|
|
|
|
swAnalyze = view.findViewById(R.id.swAnalyze);
|
|
|
|
swAnalyze = view.findViewById(R.id.swAnalyze);
|
|
|
@ -1097,6 +1099,17 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swIntegrity.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton v, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit()
|
|
|
|
|
|
|
|
.putBoolean("sqlite_integrity_check", checked)
|
|
|
|
|
|
|
|
.remove("debug")
|
|
|
|
|
|
|
|
.commit();
|
|
|
|
|
|
|
|
ApplicationEx.restart(v.getContext(), "sqlite_integrity_check");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
swWal.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
swWal.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
@ -1975,6 +1988,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
tvRoomQueryThreads.setText(getString(R.string.title_advanced_room_query_threads, NF.format(query_threads)));
|
|
|
|
tvRoomQueryThreads.setText(getString(R.string.title_advanced_room_query_threads, NF.format(query_threads)));
|
|
|
|
sbRoomQueryThreads.setProgress(query_threads);
|
|
|
|
sbRoomQueryThreads.setProgress(query_threads);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swIntegrity.setChecked(prefs.getBoolean("sqlite_integrity_check", true));
|
|
|
|
swWal.setChecked(prefs.getBoolean("wal", true));
|
|
|
|
swWal.setChecked(prefs.getBoolean("wal", true));
|
|
|
|
swCheckpoints.setChecked(prefs.getBoolean("sqlite_checkpoints", true));
|
|
|
|
swCheckpoints.setChecked(prefs.getBoolean("sqlite_checkpoints", true));
|
|
|
|
swAnalyze.setChecked(prefs.getBoolean("sqlite_analyze", true));
|
|
|
|
swAnalyze.setChecked(prefs.getBoolean("sqlite_analyze", true));
|
|
|
|