Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset index when items are changed #95

Merged
merged 1 commit into from
Apr 21, 2022
Merged

Reset index when items are changed #95

merged 1 commit into from
Apr 21, 2022

Conversation

renezuidhof
Copy link
Contributor

Bugfix (non-breaking change which fixes an issue): #66.

This issue was already resolved but it was only fixed in the DefaultSpinnerAdapter. In this one-line PR the IconSpinnerAdapter has been fixed as well.

A IndexOutOfBounds exception can occur when setting new items if an item was already selected. Resetting the index was already done in the DefaultSpinnerAdapter but not here.
@renezuidhof
Copy link
Contributor Author

Here you can find the same fix that has already been merged in the DefaultSpinnerAdapter: fd8b99d

Copy link
Owner

@skydoves skydoves left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!
Thank you for the contribution :)

@skydoves skydoves merged commit c65356e into skydoves:master Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants