blob: ff7e293afb8e7cd2f14c395efaa1d26905962dca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package se.emilsjolander.stickylistheaders;
import android.content.Context;
import android.widget.SectionIndexer;
class SectionIndexerAdapterWrapper extends
AdapterWrapper implements SectionIndexer {
final SectionIndexer mSectionIndexerDelegate;
SectionIndexerAdapterWrapper(Context context,
StickyListHeadersAdapter delegate) {
super(context, delegate);
mSectionIndexerDelegate = (SectionIndexer) delegate;
}
@Override
public int getPositionForSection(int section) {
return mSectionIndexerDelegate.getPositionForSection(section);
}
@Override
public int getSectionForPosition(int position) {
return mSectionIndexerDelegate.getSectionForPosition(position);
}
@Override
public Object[] getSections() {
return mSectionIndexerDelegate.getSections();
}
}
|