arcadefire / nice-spinner

A nice spinner for Android
Apache License 2.0
2.85k stars 445 forks source link

setSelectedIndex doesn't trigger the new or old listener #128

Open asknask opened 5 years ago

asknask commented 5 years ago

Using the latest version of the library.

The setSelectedIndex doesn't trigger any of the listeners (setOnItemSelected, setOnSpinnerItemSelected), which causes issues as visually the user can see item 0 being shown in the list, but it isn't actually selected.

Or even if it is, the listener still isn't called by the setSelectedIndex function hence preventing me from taking some sort of action based on it.