-
Notifications
You must be signed in to change notification settings - Fork 261
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
Items get deselected when list scrolls off-screen #5
Comments
Good catch, I'll look into it! |
Interesting, it only seems to happen when the list has checkboxes. Let's keep investigating |
Fixed on 2.1.2. Code already in the github repo, artifacts should be in maven central in a couple hours. |
I'm still having problems with this bug. I think you need to call setTag before setChecked in MultiChoiceAdapterHelper.initItemCheckBox method because in recycled views setChecked will trigger onCheckedChanged method with an old tag value. |
@projectsexception I've switched the calls to setTag and setChecked as you suggest (v2.2.4) |
In order to reproduce the issue: add LOTS of items to the arrays in arrays.xml file of the sample application. Run the BaseAdapterDemo and select 3 or 4 items in list.
Then scroll down until selected items go off-screen: you will see the selected items count decrease until the ActionBar gose back to non-contextual mode and items are not selected anymore.
The text was updated successfully, but these errors were encountered: