diff --git a/src/com/fsck/k9/helper/SectionListAdapter.java b/src/com/fsck/k9/helper/SectionListAdapter.java index 901af5a9d..cde4aed46 100644 --- a/src/com/fsck/k9/helper/SectionListAdapter.java +++ b/src/com/fsck/k9/helper/SectionListAdapter.java @@ -78,7 +78,7 @@ public class SectionListAdapter extends BaseAdapter{ }else{ for(int i=0; i= 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 }