diff --git a/lib/src/main/java/com/zyyoona7/lib/EasyPopup.java b/lib/src/main/java/com/zyyoona7/lib/EasyPopup.java index bb419b0..2aeb4f6 100644 --- a/lib/src/main/java/com/zyyoona7/lib/EasyPopup.java +++ b/lib/src/main/java/com/zyyoona7/lib/EasyPopup.java @@ -567,8 +567,9 @@ public void onGlobalLayout() { * * @param listener */ - public void setOnDismissListener(PopupWindow.OnDismissListener listener) { + public T setOnDismissListener(PopupWindow.OnDismissListener listener) { this.mOnDismissListener = listener; + return (T) this; } /**