commit | 6d34ffdeaa235f347af25b8b2080f80e0dd02f2a | [log] [tgz] |
---|---|---|
author | Jagrut Desai <jagrutdesai@google.com> | Mon Dec 18 15:32:52 2023 -0800 |
committer | Jagrut Desai <jagrutdesai@google.com> | Mon Dec 18 15:32:52 2023 -0800 |
tree | 4480eab5f81d98893f08c801e3b182f806d11fd0 | |
parent | 83d42f71ca2283c8a2bd1d2ef33ef717992155db [diff] |
Correcting Logic of touch ouside of container. Test: presubmit, manual Bug: 311761184 Flag: NONE Change-Id: Id014a16d67d06ebeed5e54358472890bb582ae89
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index 91ef472..edc6aac 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
@@ -2290,7 +2290,7 @@ 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);