Merge "Disable FLAG_WATCH_OUTSIDE_TOUCH for new touch detection"

This commit is contained in:
Austin Delgado
2023-01-31 21:53:28 +00:00
committed by Android (Google) Code Review

View File

@@ -442,7 +442,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
}