am 0175e945
: Merge "Fix external bug http://code.google.com/p/android/issues/detail?id=15183" into honeycomb-mr1
* commit '0175e945bb14b2208e00a3a7c9c35261981499a8': Fix external bug http://code.google.com/p/android/issues/detail?id=15183
This commit is contained in:
@ -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(
|
||||||
|
Reference in New Issue
Block a user