Merge "Reducing the swipe length for going to overview to account for recent threshold changes" into ub-launcher3-master

This commit is contained in:
TreeHugger Robot
2019-02-25 22:43:45 +00:00
committed by Android (Google) Code Review
@@ -57,15 +57,15 @@ public class Background extends LauncherInstrumentation.VisibleContainer {
return new BaseOverview(mLauncher);
}
protected void goToOverviewUnchecked(int expectedState) {
if (mLauncher.isSwipeUpEnabled()) {
final int height = mLauncher.getDevice().getDisplayHeight();
final UiObject2 navBar = mLauncher.getSystemUiObject("navigation_bar_frame");
int swipeLength = Math.round(100 * mLauncher.getDisplayDensity());
mLauncher.swipe(
navBar.getVisibleBounds().centerX(), navBar.getVisibleBounds().centerY(),
navBar.getVisibleBounds().centerX(), height - 400,
navBar.getVisibleBounds().centerX(), height - swipeLength,
expectedState);
} else {
mLauncher.getSystemUiObject("recent_apps").click();