Not switching nav mode on a virtual device for now
Change-Id: Ie089638b6252073e5e495e87c7bc0d252a58e95f
This commit is contained in:
@@ -111,7 +111,7 @@ public abstract class AbstractLauncherUiTest {
|
||||
mLauncher = new LauncherInstrumentation(instrumentation);
|
||||
|
||||
// b/130558787; b/131419978
|
||||
if (TestHelpers.isInLauncherProcess()) {
|
||||
if (TestHelpers.isInLauncherProcess() && !LauncherInstrumentation.needSlowGestures()) {
|
||||
try {
|
||||
Class systemProps = Class.forName("android.os.SystemProperties");
|
||||
Method getInt = systemProps.getMethod("getInt", String.class, int.class);
|
||||
|
||||
@@ -191,7 +191,7 @@ public final class LauncherInstrumentation {
|
||||
return NavigationModel.THREE_BUTTON;
|
||||
}
|
||||
|
||||
static boolean needSlowGestures() {
|
||||
public static boolean needSlowGestures() {
|
||||
return Build.MODEL.contains("Cuttlefish");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user