Android: Fix crash when attempting to change MEM2 size

The step size for the slider ended up being 10, but Android wanted it
to be a divisor of the slider's range (which is 128 - 64 = 64).
This commit is contained in:
JosJuice 2023-01-29 23:35:54 +01:00
parent d380d43209
commit 00fdf1ddce
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ public final class SettingsAdapter extends RecyclerView.Adapter<SettingViewHolde
slider.setValue(mSeekbarProgress);
// Sliders can get frustrating to use with a small step size and large ranges
int maxRange = item.getMax();
int maxRange = item.getMax() - item.getMin();
if (maxRange <= 100)
{
slider.setStepSize(1);