summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorEthan Chen <intervigil@gmail.com>2013-05-30 22:12:18 -0700
committerEthan Chen <intervigil@gmail.com>2013-06-06 10:45:32 -0700
commit45b6edf912e4b2379a3971c5b785b66bfe1ae9d9 (patch)
tree59ef73b303b1f542f086f919f1b1cb72c1f6eeb6 /tools
parent4ed6fd0c617d7642a2056fb99d18e5356f42b60a (diff)
downloadframeworks_base-45b6edf912e4b2379a3971c5b785b66bfe1ae9d9.zip
frameworks_base-45b6edf912e4b2379a3971c5b785b66bfe1ae9d9.tar.gz
frameworks_base-45b6edf912e4b2379a3971c5b785b66bfe1ae9d9.tar.bz2
Detect whether overflow button should be shown based on menu key state
Some devices may have hardware keys but not contain a hardware menu key. Hardware keys are also able to remapped. The overflow button detection logic currently does not take that into account. This change allows detects whether any key is capable of emitting the MENU_ACTION keystroke in order to determine whether the overflow button should be shown or not. Change-Id: I8699bd0242560314f8eadc54b187c69c992cf875
Diffstat (limited to 'tools')
-rw-r--r--tools/layoutlib/bridge/src/android/view/IWindowManagerImpl.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/layoutlib/bridge/src/android/view/IWindowManagerImpl.java b/tools/layoutlib/bridge/src/android/view/IWindowManagerImpl.java
index 25fee8d..f523b03 100644
--- a/tools/layoutlib/bridge/src/android/view/IWindowManagerImpl.java
+++ b/tools/layoutlib/bridge/src/android/view/IWindowManagerImpl.java
@@ -508,4 +508,9 @@ public class IWindowManagerImpl implements IWindowManager {
throws RemoteException {
// TODO Auto-generated method stub
}
+
+ @Override
+ public boolean hasMenuKeyEnabled() {
+ return true;
+ }
}