diff options
| author | Daniel Sandler <dsandler@android.com> | 2011-10-19 16:39:14 -0400 |
|---|---|---|
| committer | Daniel Sandler <dsandler@android.com> | 2011-10-19 16:39:14 -0400 |
| commit | 0c4ccff36930ff4f0292b94ad51e164c9fa060a3 (patch) | |
| tree | 062b194978f180d67b352cc64b552a485bdead62 /core/java/android/view/WindowManagerPolicy.java | |
| parent | 70ac412b2fe7be2507189a9fdfb30c43b36d56ac (diff) | |
Add hasNavigationBar() to the window manager.
It is no longer sufficient to check the value of
internal.R.bool.config_showNavigationBar to determine if a
navigation bar (separate from the status bar) is shown on a
device, because the emulator needs to be able to override
this value (now possible by setting qemu.hw.mainkeys to "1"
or "0", for navbar or no navbar, respectively).
This logic is now contained in PhoneWindowManager, and any
clients wishing to know whether the system has a software
nav bar should consult the new hasNavigationBar() method.
Bug: 5404945
Change-Id: I119d32a8c84b88b2ef46f63244e7f11dc5de0359
Diffstat (limited to 'core/java/android/view/WindowManagerPolicy.java')
| -rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index 17bdff2c9628..2e19bf64d3e1 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -1010,6 +1010,11 @@ public interface WindowManagerPolicy { public int adjustSystemUiVisibilityLw(int visibility); /** + * Specifies whether there is an on-screen navigation bar separate from the status bar. + */ + public boolean hasNavigationBar(); + + /** * Print the WindowManagerPolicy's state into the given stream. * * @param prefix Text to print at the front of each line. |
