Merge "Set portrait orientation for FallbackRecentsTest" into ub-launcher3-qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8bb8e56580
@@ -32,6 +32,7 @@ import android.app.Instrumentation;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.ActivityInfo;
|
||||
import android.os.RemoteException;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
@@ -65,10 +66,11 @@ public class FallbackRecentsTest {
|
||||
|
||||
@Rule public final TestRule mSetLauncherCommand;
|
||||
|
||||
public FallbackRecentsTest() {
|
||||
public FallbackRecentsTest() throws RemoteException {
|
||||
Instrumentation instrumentation = getInstrumentation();
|
||||
Context context = instrumentation.getContext();
|
||||
mDevice = UiDevice.getInstance(instrumentation);
|
||||
mDevice.setOrientationNatural();
|
||||
mLauncher = new LauncherInstrumentation(instrumentation);
|
||||
|
||||
mQuickstepOnOffExecutor = new NavigationModeSwitchRule(mLauncher);
|
||||
|
||||
Reference in New Issue
Block a user