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

Skip to content
Commit 8b4b3c7d authored by William Xiao's avatar William Xiao
Browse files

Fix hub also reacting to lockscreen shade/bouncer gestures

The hub's TouchMonitor is not active on keyguard and shade/bouncer
swipes are handled by the existing logic in
NotificationShadeWindowViewController. Since these touches don't go
through the typical view touch-handling path, the hub sees the touches
before the shade/bouncer and continues to receive move events even if
the shade or bouncer are reacting to them.

This change prevents the hub from receiving and handling touches once
the bouncer or shade are opening on keyguard, with the exception of up
or cancel events, as the hub always receives at least a few initial
events before the gesture's intention is determined.

Manually tested by swiping from the top/bottom a small amount then
turning gesture to left and right on keyguard, hub, and dream.

Bug: 356999013
Fix: 356999013
Test: atest GlanceableHubContainerControllerTest
Flag: com.android.systemui.communal_hub
Change-Id: I427cd436698a360cac59dc591d906bda36d45d69
parent 74d031c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment