Skip to content

Commit 47c611c

Browse files
committed
🚑 Fixed the button enabled and disabled bug on active() and disable()
1 parent 5fac3ee commit 47c611c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

progress-button/src/main/java/dev/sagar/progress_button/ProgressButton.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ class ProgressButton @JvmOverloads constructor(
353353
defaultColor
354354
)
355355
textView.text = defaultText
356-
cardView.isEnabled = isEnabled
356+
cardView.isEnabled = true
357357
progressBar.gone()
358358
textView.visible()
359359
}
@@ -366,7 +366,7 @@ class ProgressButton @JvmOverloads constructor(
366366
disabledColor
367367
)
368368
textView.text = defaultText
369-
cardView.isEnabled = isEnabled
369+
cardView.isEnabled = false
370370
progressBar.gone()
371371
textView.visible()
372372
}

0 commit comments

Comments
 (0)