Merge "Not switching nav mode on a virtual device for now" into ub-launcher3-qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ac8494bfd9
@@ -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