mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Attempt to fix broken tests by having different nav models
Change-Id: I1adae9f5897269bda9019b1cce0479b6d4af1c72 Pixel1: 3 button Pixel2: 0 button Pixel3: 2 button
This commit is contained in:
@@ -118,13 +118,13 @@ public abstract class AbstractLauncherUiTest {
|
||||
int apiLevel = (int) getInt.invoke(null, "ro.product.first_api_level", 0);
|
||||
|
||||
if (apiLevel >= Build.VERSION_CODES.P) {
|
||||
setActiveOverlay(NAV_BAR_MODE_GESTURAL_OVERLAY,
|
||||
LauncherInstrumentation.NavigationModel.ZERO_BUTTON);
|
||||
}
|
||||
if (apiLevel >= Build.VERSION_CODES.O && apiLevel < Build.VERSION_CODES.P) {
|
||||
setActiveOverlay(NAV_BAR_MODE_2BUTTON_OVERLAY,
|
||||
LauncherInstrumentation.NavigationModel.TWO_BUTTON);
|
||||
}
|
||||
if (apiLevel >= Build.VERSION_CODES.O && apiLevel < Build.VERSION_CODES.P) {
|
||||
setActiveOverlay(NAV_BAR_MODE_GESTURAL_OVERLAY,
|
||||
LauncherInstrumentation.NavigationModel.ZERO_BUTTON);
|
||||
}
|
||||
if (apiLevel < Build.VERSION_CODES.O) {
|
||||
setActiveOverlay(NAV_BAR_MODE_3BUTTON_OVERLAY,
|
||||
LauncherInstrumentation.NavigationModel.THREE_BUTTON);
|
||||
|
||||
Reference in New Issue
Block a user