Skip to content

Commit 85aea36

Browse files
Craig MautnerAndroid (Google) Code Review
authored andcommitted
Merge "Remove Popup immediately rather than defer it." into jb-dev
2 parents 101fb9f + b82d074 commit 85aea36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/java/android/widget/PopupWindow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,13 +1253,13 @@ public void dismiss() {
12531253
unregisterForScrollChanged();
12541254

12551255
try {
1256-
mWindowManager.removeView(mPopupView);
1256+
mWindowManager.removeViewImmediate(mPopupView);
12571257
} finally {
12581258
if (mPopupView != mContentView && mPopupView instanceof ViewGroup) {
12591259
((ViewGroup) mPopupView).removeView(mContentView);
12601260
}
12611261
mPopupView = null;
1262-
1262+
12631263
if (mOnDismissListener != null) {
12641264
mOnDismissListener.onDismiss();
12651265
}

0 commit comments

Comments
 (0)