diff --git a/app/src/main/java/com/drdisagree/iconify/ui/preferences/SliderPreference.java b/app/src/main/java/com/drdisagree/iconify/ui/preferences/SliderPreference.java index cebbff3e6..cd35680a3 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/preferences/SliderPreference.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/preferences/SliderPreference.java @@ -320,7 +320,10 @@ private void handleResetButton() { if (showResetButton) { mResetButton.setVisibility(View.VISIBLE); - mResetButton.setEnabled(isEnabled() && !Objects.equals(slider.getValues().get(0), defaultValue.get(0))); + + if (!slider.getValues().isEmpty()) { + mResetButton.setEnabled(isEnabled() && !Objects.equals(slider.getValues().get(0), defaultValue.get(0))); + } } else { mResetButton.setVisibility(View.GONE); }