Loading core/java/android/widget/AbsListView.java +2 −1 Original line number Diff line number Diff line Loading @@ -7188,7 +7188,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te startOffsetRatio = -firstChild.getTop() / (float) firstChildHeight; } final float startSubRow = firstRow + startOffsetRatio; final float startSubRow = MathUtils.constrain( firstRow + startOffsetRatio, 0, getCount()); if (startSubRow == endSubRow && mOffset == 0) { // Don't scroll, target is already in position. return; Loading Loading
core/java/android/widget/AbsListView.java +2 −1 Original line number Diff line number Diff line Loading @@ -7188,7 +7188,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te startOffsetRatio = -firstChild.getTop() / (float) firstChildHeight; } final float startSubRow = firstRow + startOffsetRatio; final float startSubRow = MathUtils.constrain( firstRow + startOffsetRatio, 0, getCount()); if (startSubRow == endSubRow && mOffset == 0) { // Don't scroll, target is already in position. return; Loading