Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64368761 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "AbsListView does not populate accessibility events correctly."

parents 8b55e926 aa565347
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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