AbsListView does not populate accessibility events correctly.
The toIndex of accessibility events fired from a AbsListView is exclusive but should be inclusive i.e. it was reported one more that it has to be. bug:5256286 Change-Id: I496959fdfb6760b0c74899730c4cc558e89234a6
This commit is contained in:
@ -926,8 +926,10 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup {
|
||||
}
|
||||
event.setItemCount(getCount());
|
||||
event.setCurrentItemIndex(getSelectedItemPosition());
|
||||
event.setFromIndex(mFirstPosition);
|
||||
event.setToIndex(mFirstPosition + getChildCount());
|
||||
if (getChildCount() > 0) {
|
||||
event.setFromIndex(getFirstVisiblePosition());
|
||||
event.setToIndex(getLastVisiblePosition());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user