Merge "Workaround for b/135766310" into ub-launcher3-qt-dev

This commit is contained in:
Vadim Tryshev
2019-06-21 21:33:16 +00:00
committed by Android (Google) Code Review

View File

@@ -49,12 +49,14 @@ class PortraitLandscapeRunner implements TestRule {
mTest.mDevice.setOrientationNatural();
mTest.mLauncher.setExpectedRotation(Surface.ROTATION_0);
base.evaluate();
mTest.getDevice().pressHome();
}
private void evaluateInLandscape() throws Throwable {
mTest.mDevice.setOrientationLeft();
mTest.mLauncher.setExpectedRotation(Surface.ROTATION_90);
base.evaluate();
mTest.getDevice().pressHome();
}
};
}