Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da974d84 authored by John Hoford's avatar John Hoford
Browse files

fix crash from configurable slider ranges

bug:7293391
Change-Id: I17498a2066acdb5c53763610980fe2f6532f2f34
parent 43b906d8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -149,7 +149,10 @@ public class ImageShow extends View implements SliderListener, OnSeekBarChangeLi
    }

    public void resetParameter() {
        onNewValue(getCurrentFilter().getDefaultParameter());
        ImageFilter currentFilter = getCurrentFilter();
        if (currentFilter!=null) {
            onNewValue(currentFilter.getDefaultParameter());
        }
        if (USE_SLIDER_GESTURE) {
            mSliderController.reset();
        }