From b3e48a969b6e23823e622f1c7a1508b655f9ffb6 Mon Sep 17 00:00:00 2001 From: Aleksandr Zaycev Date: Wed, 25 Nov 2015 12:27:44 +0200 Subject: [PATCH] =?UTF-8?q?fix=20setAnimationDuration=20doesn=C2=B4t=20wor?= =?UTF-8?q?k=20for=20open=20event=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/main/java/com/yalantis/contextmenu/lib/MenuAdapter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/main/java/com/yalantis/contextmenu/lib/MenuAdapter.java b/lib/src/main/java/com/yalantis/contextmenu/lib/MenuAdapter.java index 511b7e5..3740293 100644 --- a/lib/src/main/java/com/yalantis/contextmenu/lib/MenuAdapter.java +++ b/lib/src/main/java/com/yalantis/contextmenu/lib/MenuAdapter.java @@ -285,6 +285,8 @@ private void toggleIsMenuOpen() { public void setAnimationDuration(int durationMillis) { mAnimationDurationMilis = durationMillis; + mAnimatorSetShowMenu.setDuration(mAnimationDurationMilis); + mAnimatorSetHideMenu.setDuration(mAnimationDurationMilis); } private Animator.AnimatorListener mCloseOpenAnimatorListener = new Animator.AnimatorListener() {