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

Commit 412cc29f authored by Carlos Martinez Romero's avatar Carlos Martinez Romero
Browse files

Update the slider step to 1.

Step size has to be a factor of the low/high range. 5 worked fine for
60-90 and similar, but with devices with a high refresh rate of 144 it
does not. Because we don't know what the high refresh rate might be be,
1 will work for all values.

Bug: 263296308
Test: Built the app and ran it on a physical device.
Change-Id: I2c3c10e440c7e7eca758f8ef0d50e7e0eeb958fb
parent ccf864a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ import com.google.android.material.slider.RangeSlider.OnChangeListener;

public class TouchLatencyActivity extends AppCompatActivity {
    private static final int REFRESH_RATE_SLIDER_MIN = 20;
    private static final int REFRESH_RATE_SLIDER_STEP = 5;
    private static final int REFRESH_RATE_SLIDER_STEP = 1;

    private Menu mMenu;
    private Mode[] mDisplayModes;