am 85aea366: Merge "Remove Popup immediately rather than defer it." into jb-dev
* commit '85aea3664992cd1e16ef4497c3450b26bdef06b0': Remove Popup immediately rather than defer it.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user