Switching overlays more correctly
Test: presubmit Bug: 180114721 Change-Id: I0d8d0c70ef34ec941e28704d06f9df5f17782155
This commit is contained in:
parent
b0bff050f2
commit
a9740ecc8f
|
@ -168,7 +168,7 @@ public class NavigationModeSwitchRule implements TestRule {
|
||||||
|
|
||||||
Log.d(TAG, "setActiveOverlay: " + overlayPackage + "...");
|
Log.d(TAG, "setActiveOverlay: " + overlayPackage + "...");
|
||||||
UiDevice.getInstance(getInstrumentation()).executeShellCommand(
|
UiDevice.getInstance(getInstrumentation()).executeShellCommand(
|
||||||
"cmd overlay enable-exclusive " + overlayPackage);
|
"cmd overlay enable-exclusive --category " + overlayPackage);
|
||||||
|
|
||||||
if (currentSysUiNavigationMode() != expectedMode) {
|
if (currentSysUiNavigationMode() != expectedMode) {
|
||||||
final CountDownLatch latch = new CountDownLatch(1);
|
final CountDownLatch latch = new CountDownLatch(1);
|
||||||
|
|
Loading…
Reference in New Issue