Change scale of start delay

pull/215/head
M66B 6 months ago
parent 5c3d8aa336
commit 7ae97bd05f

@ -1298,8 +1298,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
sbStartDelay.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { sbStartDelay.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override @Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
int start_delay = progress * 10; prefs.edit().putInt("start_delay", progress).apply();
prefs.edit().putInt("start_delay", start_delay).apply();
} }
@Override @Override
@ -2437,7 +2436,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
int start_delay = prefs.getInt("start_delay", 0); int start_delay = prefs.getInt("start_delay", 0);
tvStartDelay.setText(getString(R.string.title_advanced_start_delay, start_delay)); tvStartDelay.setText(getString(R.string.title_advanced_start_delay, start_delay));
sbStartDelay.setProgress(start_delay / 10); sbStartDelay.setProgress(start_delay);
int chunk_size = prefs.getInt("chunk_size", Core.DEFAULT_CHUNK_SIZE); int chunk_size = prefs.getInt("chunk_size", Core.DEFAULT_CHUNK_SIZE);
tvChunkSize.setText(getString(R.string.title_advanced_chunk_size, chunk_size)); tvChunkSize.setText(getString(R.string.title_advanced_chunk_size, chunk_size));

@ -1213,7 +1213,7 @@
android:id="@+id/sbStartDelay" android:id="@+id/sbStartDelay"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:max="30" android:max="60"
android:min="0" android:min="0"
android:progress="0" android:progress="0"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"

Loading…
Cancel
Save