Merge pull request #11512 from JosJuice/android-mem2-crash

Android: Fix crash when attempting to change MEM2 size
This commit is contained in:
Admiral H. Curtiss 2023-01-30 09:07:56 +01:00 committed by GitHub
commit 071ee3d85e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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); 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);