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 /services | |
parent | 70ac412b2fe7be2507189a9fdfb30c43b36d56ac (diff) | |
download | frameworks_base-0c4ccff36930ff4f0292b94ad51e164c9fa060a3.zip frameworks_base-0c4ccff36930ff4f0292b94ad51e164c9fa060a3.tar.gz frameworks_base-0c4ccff36930ff4f0292b94ad51e164c9fa060a3.tar.bz2 |
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 'services')
-rw-r--r-- | services/java/com/android/server/wm/WindowManagerService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java index 68f0e66..3af3e06 100644 --- a/services/java/com/android/server/wm/WindowManagerService.java +++ b/services/java/com/android/server/wm/WindowManagerService.java @@ -9263,6 +9263,11 @@ public class WindowManagerService extends IWindowManager.Stub } } + @Override + public boolean hasNavigationBar() { + return mPolicy.hasNavigationBar(); + } + void dumpInput(FileDescriptor fd, PrintWriter pw, boolean dumpAll) { pw.println("WINDOW MANAGER INPUT (dumpsys window input)"); mInputManager.dump(pw); |