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

Commit 3ab3c768 authored by Vadim Tryshev's avatar Vadim Tryshev Committed by Android (Google) Code Review
Browse files

Merge "Logging original exception in PortraitLandscapeRunner" into ub-launcher3-qt-r1-dev

parents a7b3de9e 21cd1281
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
package com.android.launcher3.ui;

import android.util.Log;
import android.view.Surface;

import com.android.launcher3.tapl.TestHelpers;
@@ -9,6 +10,7 @@ import org.junit.runner.Description;
import org.junit.runners.model.Statement;

class PortraitLandscapeRunner implements TestRule {
    private static final String TAG = "PortraitLandscapeRunner";
    private AbstractLauncherUiTest mTest;

    public PortraitLandscapeRunner(AbstractLauncherUiTest test) {
@@ -36,6 +38,9 @@ class PortraitLandscapeRunner implements TestRule {

                    evaluateInPortrait();
                    evaluateInLandscape();
                } catch (Exception e) {
                    Log.e(TAG, "Exception", e);
                    throw e;
                } finally {
                    mTest.mDevice.setOrientationNatural();
                    mTest.executeOnLauncher(launcher ->