diff --git a/README.MD b/README.MD index 31c8cbf..96f7baa 100644 --- a/README.MD +++ b/README.MD @@ -3,7 +3,7 @@ #FabOptions [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FabOptions-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/4734) [![MaterialUp](https://img.shields.io/badge/MaterialUp-FabOptions-blue.svg?style=flat)](https://material.uplabs.com/posts/faboptions) -[![Bintray](https://img.shields.io/badge/Bintray-v1.1.1-brightgreen.svg?style=flat)](https://bintray.com/leyopensource/FabOptions/com.github.joaquimley%3Afaboptions/1.1.1) +[![Bintray](https://img.shields.io/badge/Bintray-v1.1.2-brightgreen.svg?style=flat)](https://bintray.com/leyopensource/FabOptions/com.github.joaquimley%3Afaboptions/1.1.2) ![minSdkVersion](https://img.shields.io/badge/minSdkVersion-14-green.svg?style=true) ![compileSdkVersion](https://img.shields.io/badge/compileSdkVersion-25-green.svg?style=true) @@ -27,7 +27,7 @@ Android implementation - Import gradle dependency: dependencies { - compile 'com.github.joaquimley:faboptions:1.1.1' + compile 'com.github.joaquimley:faboptions:1.1.2' } - Add the component to your layout: diff --git a/faboptions/build.gradle b/faboptions/build.gradle index ffc8a18..d2d176e 100644 --- a/faboptions/build.gradle +++ b/faboptions/build.gradle @@ -25,8 +25,8 @@ android { defaultConfig { minSdkVersion 14 targetSdkVersion 25 - versionCode 10 - versionName "1.1.1" + versionCode 11 + versionName "1.1.2" vectorDrawables.useSupportLibrary = true } @@ -39,7 +39,7 @@ android { } dependencies { - final DESIGN_LIBRARY_VERSION = '25.1.0' + final DESIGN_LIBRARY_VERSION = '25.1.1' compile "com.android.support:design:$DESIGN_LIBRARY_VERSION" } diff --git a/faboptions/src/main/java/com/joaquimley/faboptions/FabOptions.java b/faboptions/src/main/java/com/joaquimley/faboptions/FabOptions.java index 136f17a..838df6a 100644 --- a/faboptions/src/main/java/com/joaquimley/faboptions/FabOptions.java +++ b/faboptions/src/main/java/com/joaquimley/faboptions/FabOptions.java @@ -228,13 +228,14 @@ public void onClick(View v) { open(); } } else { - if (mListener != null) { + if (mListener != null && mIsOpen) { mListener.onClick(v); close(); } } } + @Override public void setOnClickListener(View.OnClickListener listener) { mListener = listener; } diff --git a/sample/build.gradle b/sample/build.gradle index 94bde1e..729529f 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -37,9 +37,10 @@ android { } dependencies { - final DESIGN_LIBRARY_VERSION = '25.1.0' + final DESIGN_LIBRARY_VERSION = '25.1.1' final FABOPTIONS_VERSION = '1.1.1' compile "com.android.support:design:$DESIGN_LIBRARY_VERSION" - compile "com.github.joaquimley:faboptions:$FABOPTIONS_VERSION" +// compile "com.github.joaquimley:faboptions:$FABOPTIONS_VERSION" + compile project(':faboptions') }