public void dismissComplete() {
        if (isShowing()) {
            mShowing = false;
            try {
                mWindowManager.removeViewImmediate(mPopupView);
            } finally {
                // Do...
            }
        }
    }
FORCE the popup window to be removed.
You typically calls this when the parent view is being removed from the window to avoid a Window Leak
caprice/ui/src/main/java/net/qiujuer/genius/ui/widget/popup/PopupIndicator.java