Do not capture swipes in opposite direction.
This changelist updates the logic in BouncerSwipeTouchHandler to
validate the direction of the vertical swipe. Accepting swipes in the
opposite direction (such as down on a collapsed bouncer) can cause
lockscreen/shade ui locking up.
Test: atest BouncerSwipeTouchHandlerTest
Flag: ACONFIG com.android.systemui.dream_overlay_bouncer_swipe_direction_filtering DISABLED
Change-Id: I954fd8d61248319646539fa60c89fe728cf21f71
diff --git a/packages/SystemUI/aconfig/systemui.aconfig b/packages/SystemUI/aconfig/systemui.aconfig
index 6810aac9..e4dce60 100644
--- a/packages/SystemUI/aconfig/systemui.aconfig
+++ b/packages/SystemUI/aconfig/systemui.aconfig
@@ -731,3 +731,13 @@
description: "Glow bar indicator reveals upon keyboard docking."
bug: "324600132"
}
+
+flag {
+ name: "dream_overlay_bouncer_swipe_direction_filtering"
+ namespace: "systemui"
+ description: "do not initiate bouncer swipe when the direction is opposite of the expansion"
+ bug: "333632464"
+ metadata {
+ purpose: PURPOSE_BUGFIX
+ }
+}
\ No newline at end of file