am 2bed570b: Fix bug 3367627 - spontaneous crash

* commit '2bed570bba183249c6ca9ca1151d1d23808de8c1':
  Fix bug 3367627 - spontaneous crash
This commit is contained in:
Adam Powell
2011-01-23 23:36:52 -08:00
committed by Android Git Automerger

View File

@@ -1095,9 +1095,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
*/
private boolean contentFits() {
final int childCount = getChildCount();
if (childCount != mItemCount) {
return false;
}
if (childCount == 0) return true;
if (childCount != mItemCount) return false;
return getChildAt(0).getTop() >= 0 && getChildAt(childCount - 1).getBottom() <= mBottom;
}