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);