diff options
Diffstat (limited to 'tests/framework/base/windowmanager/src/android/server/wm/WindowInsetsControllerTests.java')
-rw-r--r-- | tests/framework/base/windowmanager/src/android/server/wm/WindowInsetsControllerTests.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/framework/base/windowmanager/src/android/server/wm/WindowInsetsControllerTests.java b/tests/framework/base/windowmanager/src/android/server/wm/WindowInsetsControllerTests.java index 65465b27895..8dc33b1f745 100644 --- a/tests/framework/base/windowmanager/src/android/server/wm/WindowInsetsControllerTests.java +++ b/tests/framework/base/windowmanager/src/android/server/wm/WindowInsetsControllerTests.java @@ -59,6 +59,7 @@ import android.app.AlertDialog; import android.app.Instrumentation; import android.content.Context; import android.content.pm.PackageManager; +import android.content.res.Resources; import android.os.Bundle; import android.os.SystemClock; import android.platform.test.annotations.Presubmit; @@ -226,6 +227,11 @@ public class WindowInsetsControllerTests extends WindowManagerTestBase { final Instrumentation instrumentation = getInstrumentation(); assumeThat(MockImeSession.getUnavailabilityReason(instrumentation.getContext()), nullValue()); + final Resources resources = instrumentation.getContext().getResources(); + final boolean isHideNavBarForKeyboardEnabled = resources.getBoolean( + resources.getIdentifier("config_hideNavBarForKeyboard", "bool", "android")); + assumeFalse("Device is configured to not show navigation bar for keyboard", + isHideNavBarForKeyboardEnabled); final MockImeSession imeSession = MockImeHelper.createManagedMockImeSession(this); final ImeEventStream stream = imeSession.openEventStream(); final TestActivity activity = startActivityInWindowingModeFullScreen(TestActivity.class); |