Merge "Revert "Don't invalidate list data during layout."" into nyc-mr1-dev

This commit is contained in:
Phil Weaver
2016-11-02 17:13:22 +00:00
committed by Android (Google) Code Review

View File

@@ -2160,6 +2160,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
}
layoutChildren();
mInLayout = false;
mOverscrollMax = (b - t) / OVERSCROLL_LIMIT_DIVISOR;
@@ -2167,7 +2168,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
if (mFastScroll != null) {
mFastScroll.onItemCountChanged(getChildCount(), mItemCount);
}
mInLayout = false;
}
/**
@@ -2697,9 +2697,6 @@ 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;