Skip to content

Commit

Permalink
Android: Fix crash when attempting to change MEM2 size
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
JosJuice committed Jan 29, 2023
1 parent d380d43 commit 00fdf1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public void onSliderClick(SliderSetting item, int position)
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);
Expand Down

0 comments on commit 00fdf1d

Please sign in to comment.