summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adam Powell <adamp@google.com> 2011-08-03 16:45:45 -0700
committer Adam Powell <adamp@google.com> 2011-08-03 16:45:45 -0700
commitdc5facd47631b4f076f98a4dca6ea16c64ae6002 (patch)
tree01d4d9ea1797da025a5dbec629830bb04834504e
parent5254d5edeeca25bed0359870bc74b3f018d10f12 (diff)
Fix bug 5044737 - Compatibility menus should be as wide as the screen
width Change-Id: I96f4d6d41fe490845a1e7dd40c9f1a38f01781b7
-rw-r--r--policy/src/com/android/internal/policy/impl/PhoneWindow.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
index 9c19da224cb5..14f7c112f73e 100644
--- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
@@ -552,6 +552,8 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
if (!st.shownPanelView.hasFocus()) {
st.shownPanelView.requestFocus();
}
+ } else if (!st.isInExpandedMode) {
+ width = MATCH_PARENT;
}
st.isOpen = true;