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