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
This commit is contained in:
Carlos Martinez Romero
2022-12-22 10:06:39 +00:00
parent ccf864a882
commit 412cc29f00

View File

@@ -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;