android-json-form-wizard icon indicating copy to clipboard operation
android-json-form-wizard copied to clipboard

Spinner invalid index 3, size is 3

Open diegobsm opened this issue 7 years ago • 1 comments

I have three values(item1, item2,item3), when i select the item3 it show this error. please, change your class "JsonFormFragmentPresenter", in the function "onItemSelect", (position + 1) to (position)

diegobsm avatar Jun 15 '17 14:06 diegobsm

This is because index starts from 0 so if you want to select item 3 it's index should be 2. Hope this helps

Durgnan avatar Jun 08 '19 16:06 Durgnan