From 56e6f05310091d9e1e03b5c9da21077e3053490f Mon Sep 17 00:00:00 2001 From: Dacer Date: Sun, 20 Nov 2016 14:16:07 +0800 Subject: [PATCH] allow setListener after build --- library/src/main/java/com/hackplan/androidarcmenu/ArcMenu.java | 1 + 1 file changed, 1 insertion(+) diff --git a/library/src/main/java/com/hackplan/androidarcmenu/ArcMenu.java b/library/src/main/java/com/hackplan/androidarcmenu/ArcMenu.java index c3f5a00..fa3efce 100644 --- a/library/src/main/java/com/hackplan/androidarcmenu/ArcMenu.java +++ b/library/src/main/java/com/hackplan/androidarcmenu/ArcMenu.java @@ -82,6 +82,7 @@ public Builder setDegree(double degree) { public Builder setListener(OnClickMenuListener listener) { this.onClickMenuListener = listener; + if (arcMenuInterceptLayout != null) arcMenuInterceptLayout.setOnClickBtnListener(onClickMenuListener); return this; }