Merge "fix 'int android.view.View.getHeight()' on a null object reference"
am: 4add708b91
Change-Id: I3aa9c2da09a1447f79edb6a228f88cdc731bd605
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user