roughike / SwipeSelector

A nicer-looking, more intuitive and highly customizable alternative for radio buttons and dropdowns for Android.
Apache License 2.0
1.09k stars 154 forks source link

currentPosition variable bug fix #39

Open alierdogan7 opened 5 years ago

alierdogan7 commented 5 years ago

The variable "currentPosition" needs to be updated when a SwipeItem programmmatically selected with selectItemAt() or selectItemWithValue()methods... so that getSelectedItem() method correctly retrieves the current selected item if it was selected programmatically.