diff options
| author | 2016-03-07 17:47:46 +0000 | |
|---|---|---|
| committer | 2016-03-07 17:47:48 +0000 | |
| commit | 64177e51e4148e13f8ba45c025316660aff7f79c (patch) | |
| tree | be86e91e89c4321fa36365fedf1fb630a610906e | |
| parent | a98222ae7ad4d5ea33892ed008f5b1b68efedfed (diff) | |
| parent | dbd299de2a07a2a0a490d4f37cf92870bf87d6c1 (diff) | |
Merge "Ensure PopupDecorView is not IME-focusable during exit transition." into nyc-dev
| -rw-r--r-- | core/java/android/widget/PopupWindow.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/widget/PopupWindow.java b/core/java/android/widget/PopupWindow.java index df2f57589361..dd6a41f9d209 100644 --- a/core/java/android/widget/PopupWindow.java +++ b/core/java/android/widget/PopupWindow.java @@ -1651,10 +1651,11 @@ public class PopupWindow { // to executing this method, so we can rely on that instead. final Transition exitTransition = mExitTransition; if (mIsAnchorRootAttached && exitTransition != null && decorView.isLaidOut()) { - // The decor view is non-interactive during exit transitions. + // The decor view is non-interactive and non-IME-focusable during exit transitions. final LayoutParams p = (LayoutParams) decorView.getLayoutParams(); p.flags |= LayoutParams.FLAG_NOT_TOUCHABLE; p.flags |= LayoutParams.FLAG_NOT_FOCUSABLE; + p.flags &= ~LayoutParams.FLAG_ALT_FOCUSABLE_IM; mWindowManager.updateViewLayout(decorView, p); // Once we start dismissing the decor view, all state (including |