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
Loading
Please register or sign in to comment