From 6d34ffdeaa235f347af25b8b2080f80e0dd02f2a Mon Sep 17 00:00:00 2001 From: Jagrut Desai Date: Mon, 18 Dec 2023 15:32:52 -0800 Subject: [PATCH] Correcting Logic of touch ouside of container. Test: presubmit, manual Bug: 311761184 Flag: NONE Change-Id: Id014a16d67d06ebeed5e54358472890bb582ae89 --- .../com/android/launcher3/tapl/LauncherInstrumentation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index 91ef472ee4..edc6aac7eb 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -2290,7 +2290,7 @@ public final class LauncherInstrumentation { int bottomBound = Math.min( containerBounds.bottom, getRealDisplaySize().y - getImeInsets().bottom); - int y = (bottomBound + containerBounds.top) / 2; + int y = (bottomBound - containerBounds.top) / 2; // Do not tap in the status bar. y = Math.max(y, getWindowInsets().top);