Merge "PopupWindow dismiss() can get into a recursive loop." into ics-mr0
This commit is contained in:
committed by
Android (Google) Code Review
commit
7b8bec280f
@@ -1248,6 +1248,8 @@ public class PopupWindow {
|
||||
*/
|
||||
public void dismiss() {
|
||||
if (isShowing() && mPopupView != null) {
|
||||
mIsShowing = false;
|
||||
|
||||
unregisterForScrollChanged();
|
||||
|
||||
try {
|
||||
@@ -1257,7 +1259,6 @@ public class PopupWindow {
|
||||
((ViewGroup) mPopupView).removeView(mContentView);
|
||||
}
|
||||
mPopupView = null;
|
||||
mIsShowing = false;
|
||||
|
||||
if (mOnDismissListener != null) {
|
||||
mOnDismissListener.onDismiss();
|
||||
|
||||
Reference in New Issue
Block a user