1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 05:34:51 +00:00

Range size steps

This commit is contained in:
M66B 2024-10-24 10:23:29 +02:00
parent 9496a7d6a6
commit f222dc8c17
2 changed files with 4 additions and 4 deletions

View file

@ -1337,10 +1337,10 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
sbRangeSize.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
progress = progress / 10;
progress = progress / 100;
if (progress < 1)
progress = 1;
progress = progress * 10;
progress = progress * 100;
prefs.edit().putInt("range_size", progress).apply();
}

View file

@ -1250,9 +1250,9 @@
android:id="@+id/sbRangeSize"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:max="1000"
android:max="5000"
android:min="0"
android:progress="100"
android:progress="1000"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvRangeSize" />