From 98bf34e892771f606751e1dc77438a810d7debb8 Mon Sep 17 00:00:00 2001 From: svyatoslavdp Date: Thu, 13 Sep 2018 15:57:24 +0300 Subject: [PATCH] fab animation fix --- gradle.properties | 4 ++-- .../main/java/com/github/clans/fab/FloatingActionMenu.java | 1 + sample/src/main/res/layout/menus_fragment.xml | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 78dbfb3..6c31f22 100755 --- a/gradle.properties +++ b/gradle.properties @@ -17,8 +17,8 @@ # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true -VERSION_NAME=1.6.14.1 -VERSION_CODE=1060141 +VERSION_NAME=1.6.15.0 +VERSION_CODE=1060150 GROUP=com.github.clans POM_DESCRIPTION=Floating Action Button implementation for Android diff --git a/library/src/main/java/com/github/clans/fab/FloatingActionMenu.java b/library/src/main/java/com/github/clans/fab/FloatingActionMenu.java index ea13d4d..c9d4d71 100755 --- a/library/src/main/java/com/github/clans/fab/FloatingActionMenu.java +++ b/library/src/main/java/com/github/clans/fab/FloatingActionMenu.java @@ -782,6 +782,7 @@ public void run() { } public void close(final boolean animate) { + if (isAlwaysOpened()) return; if (isOpened()) { if (isBackgroundEnabled()) { if (!animate) { diff --git a/sample/src/main/res/layout/menus_fragment.xml b/sample/src/main/res/layout/menus_fragment.xml index c959636..febdfb5 100644 --- a/sample/src/main/res/layout/menus_fragment.xml +++ b/sample/src/main/res/layout/menus_fragment.xml @@ -32,6 +32,7 @@ android:textSize="18sp" />