Revert "Don't invalidate list data during layout."
This reverts commit 456158ffc2.
Change-Id: I7a61dc34dfc81ee650ca0883fe99c0f5dc08ba75
This commit is contained in:
@@ -2160,6 +2160,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
|||||||
}
|
}
|
||||||
|
|
||||||
layoutChildren();
|
layoutChildren();
|
||||||
|
mInLayout = false;
|
||||||
|
|
||||||
mOverscrollMax = (b - t) / OVERSCROLL_LIMIT_DIVISOR;
|
mOverscrollMax = (b - t) / OVERSCROLL_LIMIT_DIVISOR;
|
||||||
|
|
||||||
@@ -2167,7 +2168,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
|||||||
if (mFastScroll != null) {
|
if (mFastScroll != null) {
|
||||||
mFastScroll.onItemCountChanged(getChildCount(), mItemCount);
|
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.
|
* fail to relayout them properly to accommodate for new bounds.
|
||||||
*/
|
*/
|
||||||
void handleBoundsChange() {
|
void handleBoundsChange() {
|
||||||
if (mInLayout) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
final int childCount = getChildCount();
|
final int childCount = getChildCount();
|
||||||
if (childCount > 0) {
|
if (childCount > 0) {
|
||||||
mDataChanged = true;
|
mDataChanged = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user