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

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

Merge "NullPointerException in AbsListView.focusSearch()." into jb-dev

parents ccf97dc1 3016c1ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1388,7 +1388,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                }
                // Try to move focus to the next item.
                final int nextPosition = currentPosition - getFirstVisiblePosition() + 1;
                for (int i = nextPosition; i <= getLastVisiblePosition(); i++) {
                for (int i = nextPosition; i < getChildCount(); i++) {
                    View child = getChildAt(i);
                    if (child.getVisibility() == View.VISIBLE) {
                        return child;