From 412cc29f00729d4d0d6f0002b3809d910e79a375 Mon Sep 17 00:00:00 2001 From: Carlos Martinez Romero Date: Thu, 22 Dec 2022 10:06:39 +0000 Subject: [PATCH] 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 --- .../com/prefabulated/touchlatency/TouchLatencyActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/TouchLatencyActivity.java b/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/TouchLatencyActivity.java index 2e93c878ceacb..3a520bcdc526c 100644 --- a/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/TouchLatencyActivity.java +++ b/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/TouchLatencyActivity.java @@ -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;