diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-01-18 21:56:45 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-01-18 21:56:45 -0800 |
commit | 7fc5d4b8e7145413411da3320495388f09fab536 (patch) | |
tree | f48771a1c24f02454388dd383285f80104342998 /policy | |
parent | 7cca7e0b28679cf09ce6b56687c3a9679a6c7296 (diff) | |
parent | 2ec5a7160b3d32887b2428edef7a751ee3700809 (diff) | |
download | frameworks_base-7fc5d4b8e7145413411da3320495388f09fab536.zip frameworks_base-7fc5d4b8e7145413411da3320495388f09fab536.tar.gz frameworks_base-7fc5d4b8e7145413411da3320495388f09fab536.tar.bz2 |
am 2ec5a716: am 36c84403: Merge "Fix issue #3362484: Can\'t dismiss activity picker by tapping outside dialog" into honeycomb
* commit '2ec5a7160b3d32887b2428edef7a751ee3700809':
Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog
Diffstat (limited to 'policy')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/PhoneWindow.java | 18 |
1 files changed, 18 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 b9e93fd..ba82b33 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java @@ -166,6 +166,8 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { private int mTitleColor = 0; + private boolean mAlwaysReadCloseOnTouchAttr = false; + private ContextMenuBuilder mContextMenu; private MenuDialogHelper mContextMenuHelper; private ActionButtonSubmenu mActionButtonPopup; @@ -2342,6 +2344,17 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { addFlags(WindowManager.LayoutParams.FLAG_NEEDS_MENU_KEY); } + if (mAlwaysReadCloseOnTouchAttr || getContext().getApplicationInfo().targetSdkVersion + >= android.os.Build.VERSION_CODES.HONEYCOMB) { + if (!hasSetCloseOnTouchOutside()) { + if (a.getBoolean( + com.android.internal.R.styleable.Window_windowCloseOnTouchOutside, + false)) { + setCloseOnTouchOutside(true); + } + } + } + WindowManager.LayoutParams params = getAttributes(); if (!hasSoftInputMode()) { @@ -2495,6 +2508,11 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { return contentParent; } + /** @hide */ + public void alwaysReadCloseOnTouchAttr() { + mAlwaysReadCloseOnTouchAttr = true; + } + private void installDecor() { if (mDecor == null) { mDecor = generateDecor(); |