mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
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);
|
slider.setValue(mSeekbarProgress);
|
||||||
|
|
||||||
// Sliders can get frustrating to use with a small step size and large ranges
|
// 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)
|
if (maxRange <= 100)
|
||||||
{
|
{
|
||||||
slider.setStepSize(1);
|
slider.setStepSize(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user