|
|
|
@ -185,6 +185,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
private ImageButton ibSqliteCache;
|
|
|
|
|
private SwitchCompat swLegacyQueries;
|
|
|
|
|
private SwitchCompat swOauthTabs;
|
|
|
|
|
private TextView tvStartDelay;
|
|
|
|
|
private SeekBar sbStartDelay;
|
|
|
|
|
private TextView tvChunkSize;
|
|
|
|
|
private SeekBar sbChunkSize;
|
|
|
|
|
private TextView tvThreadRange;
|
|
|
|
@ -289,7 +291,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
"sqlite_integrity_check", "wal", "sqlite_checkpoints", "sqlite_analyze", "sqlite_auto_vacuum", "sqlite_sync_extra", "sqlite_cache",
|
|
|
|
|
"legacy_queries",
|
|
|
|
|
"oauth_tabs",
|
|
|
|
|
"chunk_size", "thread_range",
|
|
|
|
|
"start_delay", "chunk_size", "thread_range",
|
|
|
|
|
"autoscroll_editor", "undo_manager",
|
|
|
|
|
"browser_zoom", "fake_dark",
|
|
|
|
|
"ignore_formatted_size",
|
|
|
|
@ -441,6 +443,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
ibSqliteCache = view.findViewById(R.id.ibSqliteCache);
|
|
|
|
|
swLegacyQueries = view.findViewById(R.id.swLegacyQueries);
|
|
|
|
|
swOauthTabs = view.findViewById(R.id.swOauthTabs);
|
|
|
|
|
tvStartDelay = view.findViewById(R.id.tvStartDelay);
|
|
|
|
|
sbStartDelay = view.findViewById(R.id.sbStartDelay);
|
|
|
|
|
tvChunkSize = view.findViewById(R.id.tvChunkSize);
|
|
|
|
|
sbChunkSize = view.findViewById(R.id.sbChunkSize);
|
|
|
|
|
tvThreadRange = view.findViewById(R.id.tvThreadRange);
|
|
|
|
@ -1291,6 +1295,24 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
sbStartDelay.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
|
|
|
|
|
int start_delay = progress * 10;
|
|
|
|
|
prefs.edit().putInt("start_delay", start_delay).apply();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onStartTrackingTouch(SeekBar seekBar) {
|
|
|
|
|
// Do nothing
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onStopTrackingTouch(SeekBar seekBar) {
|
|
|
|
|
// Do nothing
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
sbChunkSize.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
|
|
|
|
@ -2413,6 +2435,10 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
|
|
|
|
|
swOauthTabs.setChecked(prefs.getBoolean("oauth_tabs", true));
|
|
|
|
|
|
|
|
|
|
int start_delay = prefs.getInt("start_delay", 0);
|
|
|
|
|
tvStartDelay.setText(getString(R.string.title_advanced_start_delay, start_delay));
|
|
|
|
|
sbStartDelay.setProgress(start_delay / 10);
|
|
|
|
|
|
|
|
|
|
int chunk_size = prefs.getInt("chunk_size", Core.DEFAULT_CHUNK_SIZE);
|
|
|
|
|
tvChunkSize.setText(getString(R.string.title_advanced_chunk_size, chunk_size));
|
|
|
|
|
sbChunkSize.setProgress(chunk_size);
|
|
|
|
|