Skip to content

Commit

Permalink
add spinner condition in clear class
Browse files Browse the repository at this point in the history
  • Loading branch information
AliAzaz committed Dec 13, 2019
1 parent f997d3e commit 6d1ba09
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ class Clear {
flag?.let { view.setEnabled(flag) }
}

is Spinner -> {
view.setSelection(0)
flag?.let { view.setEnabled(flag) }
}

is Switch -> {
view.isChecked = false
view.error = null
Expand Down

0 comments on commit 6d1ba09

Please sign in to comment.