Closed thimovandenberg closed 2 years ago
Oh actually I just noticed using setSelectionAtPosition does work
Thank you for the report @thimovandenberg will need to have a look.
Is there a reason for the need to calling multiSelect=false
?
I used multiSelect = false because it was mentioned as a potential fix in the other thread. I was migrating from an older version of the library where setSelection() caused the other items to be unselected. I have now changed this to setSelectionAtPosition() and it works as intended. Thanks for looking at it :)
About this issue
Hi, I have a small issue with multiple drawer items remaining selected when setSelection() is used. I have tried to setting setMultiselect(false), but this causes the problem to persist and items are not selected anymore when clicked on them.
I have created a small project to show the behavior here By pressing the button the selection is changed, but the previously selected item remains selected. Enabling mSlider.setMultiSelect(false) does not resolve this, but causes the items to not be selected when clicked.
I also saw a similar issue here, but this was not resolved I believe.
Details