am 2bed570b: Fix bug 3367627 - spontaneous crash
* commit '2bed570bba183249c6ca9ca1151d1d23808de8c1': Fix bug 3367627 - spontaneous crash
This commit is contained in:
@@ -1095,9 +1095,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
|||||||
*/
|
*/
|
||||||
private boolean contentFits() {
|
private boolean contentFits() {
|
||||||
final int childCount = getChildCount();
|
final int childCount = getChildCount();
|
||||||
if (childCount != mItemCount) {
|
if (childCount == 0) return true;
|
||||||
return false;
|
if (childCount != mItemCount) return false;
|
||||||
}
|
|
||||||
|
|
||||||
return getChildAt(0).getTop() >= 0 && getChildAt(childCount - 1).getBottom() <= mBottom;
|
return getChildAt(0).getTop() >= 0 && getChildAt(childCount - 1).getBottom() <= mBottom;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user