1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-11 20:15:03 -05:00

Fixed bug: returned wrong type of object in getItem()

This commit is contained in:
Sander Bogaert 2011-06-28 14:16:20 +02:00 committed by Andrew Chen
parent b580a559c6
commit 002f1a7429

View File

@ -78,7 +78,7 @@ public class SectionListAdapter<T> extends BaseAdapter{
}else{
for(int i=0; i<headersPos.size(); ++i ){
if( i != numberOfSections()-1 && pos >= headersPos.get(i+1) ) continue;
return sections.get(headers.get(i));
return sections.get(headers.get(i)).getItem(pos - headersPos.get(i)-1);
}
return null; // should never happen, means pos > element count
}