Switching overlays more correctly

Test: presubmit
Bug: 180114721
Change-Id: I0d8d0c70ef34ec941e28704d06f9df5f17782155
This commit is contained in:
vadimt 2021-02-12 10:08:25 -08:00 committed by Winson Chung
parent b0bff050f2
commit a9740ecc8f
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ public class NavigationModeSwitchRule implements TestRule {
Log.d(TAG, "setActiveOverlay: " + overlayPackage + "...");
UiDevice.getInstance(getInstrumentation()).executeShellCommand(
"cmd overlay enable-exclusive " + overlayPackage);
"cmd overlay enable-exclusive --category " + overlayPackage);
if (currentSysUiNavigationMode() != expectedMode) {
final CountDownLatch latch = new CountDownLatch(1);