Merge "Remove Popup immediately rather than defer it." into jb-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
85aea36649
@@ -1253,13 +1253,13 @@ public class PopupWindow {
|
|||||||
unregisterForScrollChanged();
|
unregisterForScrollChanged();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
mWindowManager.removeView(mPopupView);
|
mWindowManager.removeViewImmediate(mPopupView);
|
||||||
} finally {
|
} finally {
|
||||||
if (mPopupView != mContentView && mPopupView instanceof ViewGroup) {
|
if (mPopupView != mContentView && mPopupView instanceof ViewGroup) {
|
||||||
((ViewGroup) mPopupView).removeView(mContentView);
|
((ViewGroup) mPopupView).removeView(mContentView);
|
||||||
}
|
}
|
||||||
mPopupView = null;
|
mPopupView = null;
|
||||||
|
|
||||||
if (mOnDismissListener != null) {
|
if (mOnDismissListener != null) {
|
||||||
mOnDismissListener.onDismiss();
|
mOnDismissListener.onDismiss();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user