+53
−38
packages/SystemUI/src/com/android/systemui/haptics/qs/QSLongPressEffectViewBinder.kt
deleted100644 → 0
+0
−127
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Setting a touch listener in the QS long-press effect has been a source of regression. In addition, small increases in the main thread work during the required input event handling have created other regressions. This change aims to write the long-press effect in the most minimal way possible. Here, we only spy on touch events on the tile view and remove the overhead of coroutine continuations by adding a callback mechanism. Test: atest SystemUITests:QSTileViewImplTest Test: atest SystemUiRobotTests:QSLongPressEffectTest Bug: 345363816 Flag: com.android.systemui.quick_settings_visual_haptics_longpress Change-Id: Ic00f25597af977f7d94cf4248c1456d36ac7b69c