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

Commit f083b774 authored by vadimt's avatar vadimt
Browse files

Add one null check to tests

Change-Id: Ib4b50ac06d44b1811e0388bc373fe420fa5570fd
parent 243dd30d
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);
                }
            }