Loading tests/src/com/android/launcher3/ui/PortraitLandscapeRunner.java +5 −2 Original line number Diff line number Diff line Loading @@ -44,8 +44,11 @@ class PortraitLandscapeRunner implements TestRule { } finally { mTest.mDevice.setOrientationNatural(); mTest.executeOnLauncher(launcher -> launcher.getRotationHelper().forceAllowRotationForTesting( false)); { if (launcher != null) { launcher.getRotationHelper().forceAllowRotationForTesting(false); } }); mTest.mLauncher.setExpectedRotation(Surface.ROTATION_0); } } Loading Loading
tests/src/com/android/launcher3/ui/PortraitLandscapeRunner.java +5 −2 Original line number Diff line number Diff line Loading @@ -44,8 +44,11 @@ class PortraitLandscapeRunner implements TestRule { } finally { mTest.mDevice.setOrientationNatural(); mTest.executeOnLauncher(launcher -> launcher.getRotationHelper().forceAllowRotationForTesting( false)); { if (launcher != null) { launcher.getRotationHelper().forceAllowRotationForTesting(false); } }); mTest.mLauncher.setExpectedRotation(Surface.ROTATION_0); } } Loading