From 05ed2ceec960ca35569b336dc98a82da1013370d Mon Sep 17 00:00:00 2001 From: Matt Pietal Date: Tue, 4 Aug 2020 14:57:13 -0400 Subject: [PATCH] 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 --- .../systemui/controls/ui/ControlActionCoordinatorImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 22d6b6bb75c3b..e15380b42a78f 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) {