Merge pull request #11512 from JosJuice/android-mem2-crash
Android: Fix crash when attempting to change MEM2 size
This commit is contained in:
commit
071ee3d85e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue