Disable FLAG_WATCH_OUTSIDE_TOUCH for new touch detection

Fixes new expanded overlay not working on master. Causes some issues
with alternate bouncer consuming touches first (b/262449405)

Bug: 265455206
Test: atest SystemUITests:com.android.systemui.biometrics
Change-Id: Ife87b91dad7322702d6020a0b98e5a3bf4b2ec62
This commit is contained in:
Austin Delgado
2023-01-26 14:56:40 -08:00
parent c76e3b50b1
commit cca6b39f3d

View File

@@ -440,7 +440,8 @@ class UdfpsControllerOverlay @JvmOverloads constructor(
): WindowManager.LayoutParams {
val paddingX = animation?.paddingX ?: 0
val paddingY = animation?.paddingY ?: 0
if (animation != null && animation.listenForTouchesOutsideView()) {
if (!featureFlags.isEnabled(Flags.UDFPS_NEW_TOUCH_DETECTION) && animation != null &&
animation.listenForTouchesOutsideView()) {
flags = flags or WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH
}