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

Commit 5bd512a1 authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

Merge "ListView focus bugfix."

parents d639f457 a86127fe
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4653,6 +4653,9 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                            childrenTop += getVerticalFadingEdgeLength();
                        }
                    }
                    // Don't ever focus a disabled item.
                    if (!mAdapter.isEnabled(i)) continue;

                    if (top >= childrenTop) {
                        // Found a view whose top is fully visisble
                        selectedPos = firstPosition + i;