Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0f7badbe authored by Juan Sebastian Martinez's avatar Juan Sebastian Martinez
Browse files

Letting View handle click and longclick detection

The touch listener for long-press effects in QS tiles is removed. An
investgation showed that this was the cause of the regression that this
CL aims to fix. With the listener removed, the tile view is left to
handle its own touch events and call the onTouchEvent method of the View
to allow the click and long-click detection logic to run. The
QSLongPressEffect class is now modified to act according to the
detection of clicks by the View, the triggering of long-clicks, and the
necessary tap timeout wait (as a new action in the Flow of actions).

Test: atest SystemUITests:QSTileViewImplTest
Test: atest SystemUiRobotTests:QSLongPressEffectTest
Bug: 341890266
Flag: com.android.systemui.quick_settings_visual_haptics_longpress

Change-Id: Iac48d6563be4e7442deb891c0be61551ac125670
parent a79ddcca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment