Skip to content

Commit

Permalink
重复state则return
Browse files Browse the repository at this point in the history
  • Loading branch information
junixapp committed Jun 16, 2021
1 parent a0b7dea commit 8216c73
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class StateLayout @JvmOverloads constructor(context: Context, attributeSet: Attr
}

private fun switchLayout(s: State) {
if(state==s)return
state = s
when (state) {
Loading -> {
Expand Down

0 comments on commit 8216c73

Please sign in to comment.