File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
library/src/main/java/io/github/douglasjunior/androidSimpleTooltip Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,14 @@ public void onDismiss() {
310310 if (mOnDismissListener != null )
311311 mOnDismissListener .onDismiss (this );
312312 mOnDismissListener = null ;
313+
314+ SimpleTooltipUtils .removeOnGlobalLayoutListener (mPopupWindow .getContentView (), mLocationLayoutListener );
315+ SimpleTooltipUtils .removeOnGlobalLayoutListener (mPopupWindow .getContentView (), mArrowLayoutListener );
316+ SimpleTooltipUtils .removeOnGlobalLayoutListener (mPopupWindow .getContentView (), mShowLayoutListener );
317+ SimpleTooltipUtils .removeOnGlobalLayoutListener (mPopupWindow .getContentView (), mAnimationLayoutListener );
318+ SimpleTooltipUtils .removeOnGlobalLayoutListener (mPopupWindow .getContentView (), mAutoDismissLayoutListener );
319+
320+ mPopupWindow = null ;
313321 }
314322
315323 private final View .OnTouchListener mPopupWindowTouchListener = new View .OnTouchListener () {
You can’t perform that action at this time.
0 commit comments