Skip to content

Commit 19fa8bf

Browse files
Fix 134 (#138)
* fixing visibility GONE bug * version bump
1 parent ecaae1a commit 19fa8bf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

loading-button-android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apply plugin: 'com.github.dcendents.android-maven'
55
apply plugin: 'org.jmailen.kotlinter'
66

77
// Bintray depends on this global variable to set the library version!
8-
version = "2.1.3"
8+
version = "2.1.4"
99
group = 'br.com.simplepass'
1010

1111
android {

loading-button-android/src/main/java/br/com/simplepass/loadingbutton/customViews/CircularProgressButton.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,10 @@ open class CircularProgressButton : AppCompatButton, ProgressButton {
167167

168168
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
169169
fun dispose() {
170-
morphAnimator.disposeAnimator()
171-
morphRevertAnimator.disposeAnimator()
170+
if (presenter.state != State.BEFORE_DRAW) {
171+
morphAnimator.disposeAnimator()
172+
morphRevertAnimator.disposeAnimator()
173+
}
172174
}
173175

174176
override fun onDraw(canvas: Canvas) {

0 commit comments

Comments
 (0)