commit | 30bd886364f1e7716223e9f1ca9356a061066f76 | [log] [tgz] |
---|---|---|
author | fbaron <fbaron@google.com> | Tue Mar 19 16:44:07 2024 -0700 |
committer | fbaron <fbaron@google.com> | Tue Mar 19 16:44:07 2024 -0700 |
tree | b739b58d3cd85554e756ac27b2eb2dab60a81f61 | |
parent | 6300f0550de214e5b0d7e77230580f44fd840326 [diff] |
Make touch outside container touch at the middle of the container in terms of height Bug: 326839375 Test: TaplTestsQuickstep#testOverviewDeadzones Flag: NONE Change-Id: I7a013ab7d146756cbff009c21b838881e09e044a
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index bfff541..0e523c3 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
@@ -2452,7 +2452,7 @@ int bottomBound = Math.min( containerBounds.bottom, getRealDisplaySize().y - systemGestureRegion.bottom); - int y = (bottomBound - containerBounds.top) / 2; + int y = (bottomBound + containerBounds.top) / 2; // Do not tap in the status bar. y = Math.max(y, systemGestureRegion.top);