Correcting Logic of touch ouside of container.

Test: presubmit, manual
Bug: 311761184
Flag: NONE
Change-Id: Id014a16d67d06ebeed5e54358472890bb582ae89
This commit is contained in:
Jagrut Desai committed 2023-12-18 15:32:52 -08:00
1 parent 83d42f71ca
commit 6d34ffdeaa
1 file changed
+1 -1
@@ -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);