summaryrefslogtreecommitdiffstats
path: root/quickstep/tests
diff options
context:
space:
mode:
authorVadim Tryshev <vadimt@google.com>2019-04-26 01:11:43 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-04-26 01:11:43 +0000
commit8bb8e56580326105f54de23dee4874e41f11e996 (patch)
tree8378e88189389a2fc2228794a875304a7e68b4b7 /quickstep/tests
parentf5ef0be08dbca0937556c1c11479202ff6940b35 (diff)
parentdd4d390f38c42c01998498029e572745078b8c6a (diff)
downloadandroid_packages_apps_Trebuchet-8bb8e56580326105f54de23dee4874e41f11e996.tar.gz
android_packages_apps_Trebuchet-8bb8e56580326105f54de23dee4874e41f11e996.tar.bz2
android_packages_apps_Trebuchet-8bb8e56580326105f54de23dee4874e41f11e996.zip
Merge "Set portrait orientation for FallbackRecentsTest" into ub-launcher3-qt-dev
Diffstat (limited to 'quickstep/tests')
-rw-r--r--quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java
index f43683118..20fdff2c5 100644
--- a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java
+++ b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java
@@ -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);