diff options
author | Adam Powell <adamp@google.com> | 2011-09-18 15:39:05 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-09-18 15:39:05 -0700 |
commit | d413eb3861aae87386d418e9af4875f6f330cd05 (patch) | |
tree | d56e580e2085681f3a074d8d560b47e1596a22aa /policy | |
parent | ce801c4a1b1137ca2fd51ede6818722793c79ea4 (diff) | |
parent | 8ee6d7c20e7767c2f61f8db9a99d01e0a05f3842 (diff) | |
download | frameworks_base-d413eb3861aae87386d418e9af4875f6f330cd05.zip frameworks_base-d413eb3861aae87386d418e9af4875f6f330cd05.tar.gz frameworks_base-d413eb3861aae87386d418e9af4875f6f330cd05.tar.bz2 |
Merge "Fix bug 5333962 - Problems with no action bar/overlay action mode"
Diffstat (limited to 'policy')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/PhoneWindow.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java index 903b405..1b7271d 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java @@ -2135,7 +2135,8 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { com.android.internal.R.attr.actionModePopupWindowStyle); mActionModePopup.setLayoutInScreenEnabled(true); mActionModePopup.setLayoutInsetDecor(true); - mActionModePopup.setClippingEnabled(false); + mActionModePopup.setWindowLayoutType( + WindowManager.LayoutParams.TYPE_APPLICATION); mActionModePopup.setContentView(mActionModeView); mActionModePopup.setWidth(MATCH_PARENT); @@ -2144,10 +2145,12 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { com.android.internal.R.attr.actionBarSize, heightValue, true); final int height = TypedValue.complexToDimensionPixelSize(heightValue.data, mContext.getResources().getDisplayMetrics()); - mActionModePopup.setHeight(height); + mActionModeView.setContentHeight(height); + mActionModePopup.setHeight(WRAP_CONTENT); mShowActionModePopup = new Runnable() { public void run() { - mActionModePopup.showAtLocation(PhoneWindow.DecorView.this, + mActionModePopup.showAtLocation( + mActionModeView.getApplicationWindowToken(), Gravity.TOP | Gravity.FILL_HORIZONTAL, 0, 0); } }; |