From 4651360773dbdf108af7065de58c21ebde2eeced Mon Sep 17 00:00:00 2001 From: zyyoona7 <19671746@qq.com> Date: Mon, 7 Aug 2017 17:29:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9setOnDismissListener=E4=B9=9F?= =?UTF-8?q?=E5=8F=AF=E9=93=BE=E5=BC=8F=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/main/java/com/zyyoona7/lib/EasyPopup.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } /**