summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2011-07-22 19:35:06 -0700
committerAdam Powell <adamp@google.com>2011-07-22 19:39:00 -0700
commit0bd1d0a15294345bf88b20df28466907f982cec7 (patch)
treee26edc66c032f92e9763e07cfc66f3ea529fc636 /policy
parent423f0ed494d30bbae1a02c059769f0211f1e4d81 (diff)
downloadframeworks_base-0bd1d0a15294345bf88b20df28466907f982cec7.zip
frameworks_base-0bd1d0a15294345bf88b20df28466907f982cec7.tar.gz
frameworks_base-0bd1d0a15294345bf88b20df28466907f982cec7.tar.bz2
Fix bug 5060033 - No text-editing toolbar when in a dialog
Fix a bug that caused standalone action mode bars to not appear properly or account for system insets such as the status bar. Add public API to View to toggle the fitsSystemWindows attribute. Change-Id: I5d7669425b930c5d23f9df26a45f544b706e8242
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/PhoneWindow.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
index e0debf7..bfc3cdd 100644
--- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
@@ -2040,13 +2040,14 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
mActionModePopup = new PopupWindow(mContext, null,
com.android.internal.R.attr.actionModePopupWindowStyle);
mActionModePopup.setLayoutInScreenEnabled(true);
+ mActionModePopup.setLayoutInsetDecor(true);
mActionModePopup.setClippingEnabled(false);
mActionModePopup.setContentView(mActionModeView);
mActionModePopup.setWidth(MATCH_PARENT);
TypedValue heightValue = new TypedValue();
mContext.getTheme().resolveAttribute(
- com.android.internal.R.attr.actionBarSize, heightValue, false);
+ com.android.internal.R.attr.actionBarSize, heightValue, true);
final int height = TypedValue.complexToDimensionPixelSize(heightValue.data,
mContext.getResources().getDisplayMetrics());
mActionModePopup.setHeight(height);