TAPL Increase size of Background to Overview swipe gesture

The instrumentation is using the swipe height, not width, for when in
landscape. Ideally this should be plumbed through but it isn't yet so fix
with a bigger gesture.

Test: TaplTestNexus#testBackground
Bug: 184059820
Change-Id: Id19f65f51468af707baea0a1b31569bb84f7fcb8
This commit is contained in:
Zak Cohen 2021-03-31 15:09:34 -07:00
parent efeb27ce9c
commit b391ebf798
1 changed files with 3 additions and 1 deletions

View File

@ -122,7 +122,9 @@ public class Background extends LauncherInstrumentation.VisibleContainer {
endY = startY - swipeLength;
} else {
startX = getSwipeStartX();
endX = startX - swipeLength;
// TODO(b/184059820) make horizontal swipe use swipe width not height, for the
// moment just double the swipe length.
endX = startX - swipeLength * 2;
startY = endY = mLauncher.getDevice().getDisplayHeight() / 2;
}