From dc5facd47631b4f076f98a4dca6ea16c64ae6002 Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Wed, 3 Aug 2011 16:45:45 -0700 Subject: Fix bug 5044737 - Compatibility menus should be as wide as the screen width Change-Id: I96f4d6d41fe490845a1e7dd40c9f1a38f01781b7 --- policy/src/com/android/internal/policy/impl/PhoneWindow.java | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3-59-g8ed1b