Skip to content

Commit

Permalink
Update ToggleSwitch.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Perrault authored Nov 16, 2021
1 parent 2bd8da1 commit 2a53ec0
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ class ToggleSwitch(context: Context, attrs: AttributeSet?) : BaseToggleSwitch(co
}
}

fun getCheckedPosition() : Int {
return checkedPosition ?: -1
}

fun setCheckedPosition(checkedPosition: Int) {
this.checkedPosition = checkedPosition
for ((index, toggleSwitchButton) in buttons.withIndex()) {
Expand All @@ -55,4 +51,4 @@ class ToggleSwitch(context: Context, attrs: AttributeSet?) : BaseToggleSwitch(co
}
manageSeparatorVisiblity()
}
}
}

0 comments on commit 2a53ec0

Please sign in to comment.