Merge "Remove Popup immediately rather than defer it." into jb-dev

This commit is contained in:
Craig Mautner
2012-05-23 10:47:46 -07:00
committed by Android (Google) Code Review

View File

@@ -1253,13 +1253,13 @@ public class PopupWindow {
unregisterForScrollChanged();
try {
mWindowManager.removeView(mPopupView);
mWindowManager.removeViewImmediate(mPopupView);
} finally {
if (mPopupView != mContentView && mPopupView instanceof ViewGroup) {
((ViewGroup) mPopupView).removeView(mContentView);
}
mPopupView = null;
if (mOnDismissListener != null) {
mOnDismissListener.onDismiss();
}