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

Commit 6bdbfcfa authored by Romain Guy's avatar Romain Guy
Browse files

Fixes #1861763. Prevents IllegalArgumentException in AbsListView on focus

search.

This change makes sure the focus search does not attempt to traverse views from
the recycler.
parent 2493097c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -720,7 +720,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
    @Override
    public void getFocusedRect(Rect r) {
        View view = getSelectedView();
        if (view != null) {
        if (view != null && view.getParent() == this) {
            // the focused rectangle of the selected view offset into the
            // coordinate space of this view.
            view.getFocusedRect(r);