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

Items get deselected when list scrolls off-screen #5

Closed
zipgenius opened this issue May 19, 2013 · 5 comments
Closed

Items get deselected when list scrolls off-screen #5

zipgenius opened this issue May 19, 2013 · 5 comments

Comments

@zipgenius
Copy link

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.

@ManuelPeinado
Copy link
Owner

Good catch, I'll look into it!

@ManuelPeinado
Copy link
Owner

Interesting, it only seems to happen when the list has checkboxes. Let's keep investigating

@ManuelPeinado
Copy link
Owner

Fixed on 2.1.2. Code already in the github repo, artifacts should be in maven central in a couple hours.

@fedefernandez
Copy link

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.

@ManuelPeinado ManuelPeinado reopened this Jun 12, 2013
@ManuelPeinado
Copy link
Owner

@projectsexception I've switched the calls to setTag and setChecked as you suggest (v2.2.4)

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

No branches or pull requests

3 participants