Merge "fix 'int android.view.View.getHeight()' on a null object reference" am: 4add708b91

am: 6a5d589a50

Change-Id: I44fc06d18b963b01ef2c894d515567bb7aac2620
This commit is contained in:
cnx421
2019-03-08 07:24:54 -08:00
committed by android-build-merger

View File

@@ -7700,6 +7700,11 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
mLastSeenPos = firstPos;
final int childCount = getChildCount();
if (childCount <= 0) {
return;
}
final int position = mTargetPos;
final int lastPos = firstPos + childCount - 1;