Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9144ef0 authored by vadimt's avatar vadimt Committed by android-build-merger
Browse files

Add one null check to tests am: f083b774

am: 83775e28

Change-Id: I93c7d0dd0cc2bf0c41824a090e1cf50375453acb
parents bed2fa87 83775e28
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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);
                }
            }