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

SectionAdapter.numberOfRows gets section == -1 #34

Open
seriousmike opened this issue Nov 26, 2014 · 4 comments
Open

SectionAdapter.numberOfRows gets section == -1 #34

seriousmike opened this issue Nov 26, 2014 · 4 comments
Labels

Comments

@seriousmike
Copy link

When scrolling variable section==-1 is passed method numberOfRows.
Correct section numbers are also passed to this method, and it is not a big problem to check section in method body but this -1 is very unexpected.

Also, in Demo example we cannot watch such behavior cos` for every section (whatever it is) method returns 35, even for section -1

@aaearon
Copy link

aaearon commented Dec 1, 2014

I am also noticing this same behavior

@sirkalmi
Copy link

sirkalmi commented Dec 8, 2014

Lame, but it works for me. For the time being ...

@OverRide
public int numberOfRows(int section) {
if(section == -1) {
System.out.println("Why???");
return 0;
}
return children.get(section).size();
}

@marckaraujo
Copy link

same here

@tokou tokou added the bug label Jan 23, 2015
@KunamiPT
Copy link

I had to verify if section passed was -1
and return 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants