* commit '0175e945bb14b2208e00a3a7c9c35261981499a8':
  Fix external bug http://code.google.com/p/android/issues/detail?id=15183
This commit is contained in:
Adam Powell
2011-03-09 16:48:20 -08:00
committed by Android Git Automerger

View File

@ -564,6 +564,9 @@ class FastScroller {
} }
} else { } else {
int index = (int) (position * count); int index = (int) (position * count);
// Don't overflow
if (index > count - 1) index = count - 1;
if (mList instanceof ExpandableListView) { if (mList instanceof ExpandableListView) {
ExpandableListView expList = (ExpandableListView) mList; ExpandableListView expList = (ExpandableListView) mList;
expList.setSelectionFromTop(expList.getFlatListPosition( expList.setSelectionFromTop(expList.getFlatListPosition(