diff options
| author | JosJuice <josjuice@gmail.com> | 2023-01-29 23:35:54 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2023-01-29 23:35:54 +0100 |
| commit | 00fdf1ddceea2286619eba4830819da78e6a8abc (patch) | |
| tree | d7eb9cd662d7529f1b3365f7a755b255ceb83773 /Source/Android/app/src/main/java | |
| parent | d380d43209ce046d30af398ca3ecfc6fdd5a47d1 (diff) | |
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).
Diffstat (limited to 'Source/Android/app/src/main/java')
| -rw-r--r-- | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsAdapter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsAdapter.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsAdapter.java index 8339c93207..4fd9313237 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsAdapter.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsAdapter.java @@ -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); |
