summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Matt Pietal <mpietal@google.com> 2020-08-04 14:57:13 -0400
committer Matt Pietal <mpietal@google.com> 2020-08-05 12:30:39 +0000
commit4a28e3e8ccbcc7f1c757adda07618bbc72bee301 (patch)
tree8e18b2d817862e5d0c261418acd34bb9d9a6055c
parent160db07b3b3890b445985e18eed60311a23e509f (diff)
Controls UI - Do not throttle drag events
For range controls, many users will want to swipe multiple times in order to set the desired level. Currently, if the user swipes twice in fast succession, only the first set point will be sent. Do not block these swipe events from being sent to the corresponding service. Fixes: 162850998 Test: manual swipes on range controls Change-Id: Ib3be25bd362b411b9cd089d49edec7747820d0e7 (cherry picked from commit 05ed2ceec960ca35569b336dc98a82da1013370d)
-rw-r--r--packages/SystemUI/src/com/android/systemui/controls/ui/ControlActionCoordinatorImpl.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/controls/ui/ControlActionCoordinatorImpl.kt b/packages/SystemUI/src/com/android/systemui/controls/ui/ControlActionCoordinatorImpl.kt
index 22d6b6bb75c3..e15380b42a78 100644
--- a/packages/SystemUI/src/com/android/systemui/controls/ui/ControlActionCoordinatorImpl.kt
+++ b/packages/SystemUI/src/com/android/systemui/controls/ui/ControlActionCoordinatorImpl.kt
@@ -92,7 +92,7 @@ class ControlActionCoordinatorImpl @Inject constructor(
override fun setValue(cvh: ControlViewHolder, templateId: String, newValue: Float) {
bouncerOrRun(Action(cvh.cws.ci.controlId, {
cvh.action(FloatAction(templateId, newValue))
- }, true /* blockable */))
+ }, false /* blockable */))
}
override fun longPress(cvh: ControlViewHolder) {