Merge "Correcting Logic of touch ouside of container." into main

This commit is contained in:
Jagrut Desai
2023-12-19 17:31:01 +00:00
committed by Android (Google) Code Review
@@ -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);