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

Skip to content
Commit 28152d89 authored by Dhina17's avatar Dhina17 Committed by Bruno Martins
Browse files

SystemUI: Pass touch events to pulsing gesture listener only if dozing

PulsingGestureListener should handle touch events only in the
dozing state (AOD/ambient).

Otherwise lockscreen DT2S and AOD DT2W will be in conflict.

Explanation:
Enable AOD, DT2W and DT2S in the display settings.

In the scenerio, touch events are passed to
first NotificationPanelView then NotificationShadeWindowView.

So first NotificationPanelView(Controller) detects the double tap
and put the screen to sleep (hence dozing = true).
Then as the NotificationShadeWindowView(Controller) detects the double tap at dozing,
it wakes up from the AOD immediately [from PulsingGestureListener].

so it won't let the screen to sleep on double tap the lockscreen
when AOD and DT2W are available.

PulsingGestureListener is supposed to receive touch events only in
the dozing state, so it won't cause this conflict.

Test:
- Enable AOD, DT2W and DT2S in the display settings
- Double tap in the lockscreen, it will go to AOD screen.

Change-Id: I6ede700e690ad4c37fea64419cfe8a53d64a9e9a
parent edb2e637
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