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:
parent
b580a559c6
commit
002f1a7429
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user