am 4e0b13c9: Merge change 3348 into donut
Merge commit '4e0b13c9a94f2085d44d0fe36fd16e2599477145' * commit '4e0b13c9a94f2085d44d0fe36fd16e2599477145': Fix AlphabetIndexer.getSectionForPosition()
This commit is contained in:
committed by
The Android Open Source Project
commit
4bfa86011a
@@ -248,8 +248,8 @@ public class AlphabetIndexer extends DataSetObserver implements SectionIndexer {
|
||||
public int getSectionForPosition(int position) {
|
||||
int savedCursorPos = mDataCursor.getPosition();
|
||||
mDataCursor.moveToPosition(position);
|
||||
mDataCursor.moveToPosition(savedCursorPos);
|
||||
String curName = mDataCursor.getString(mColumnIndex);
|
||||
mDataCursor.moveToPosition(savedCursorPos);
|
||||
// Linear search, as there are only a few items in the section index
|
||||
// Could speed this up later if it actually gets used.
|
||||
for (int i = 0; i < mAlphabetLength; i++) {
|
||||
|
||||
Reference in New Issue
Block a user