Don't invalidate list data during layout. am: 456158ffc2 am: 06ffff6132

am: 07f434d02f

Change-Id: I6adaa881b70805d46d2425dd979609c6e99e11c9
This commit is contained in:
Phil Weaver
2016-11-01 23:09:02 +00:00
committed by android-build-merger

View File

@@ -2168,7 +2168,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
}
layoutChildren();
mInLayout = false;
mOverscrollMax = (b - t) / OVERSCROLL_LIMIT_DIVISOR;
@@ -2176,6 +2175,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
if (mFastScroll != null) {
mFastScroll.onItemCountChanged(getChildCount(), mItemCount);
}
mInLayout = false;
}
/**
@@ -2705,6 +2705,9 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
* fail to relayout them properly to accommodate for new bounds.
*/
void handleBoundsChange() {
if (mInLayout) {
return;
}
final int childCount = getChildCount();
if (childCount > 0) {
mDataChanged = true;