Revert "Don't invalidate list data during layout." am: 866ded50bb am: 96b4a68c06
am: b8a314427b
Change-Id: I5ace1c6b058b795a5b04e48200d2b3d3a1ae2486
This commit is contained in:
@@ -2168,6 +2168,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
||||
}
|
||||
|
||||
layoutChildren();
|
||||
mInLayout = false;
|
||||
|
||||
mOverscrollMax = (b - t) / OVERSCROLL_LIMIT_DIVISOR;
|
||||
|
||||
@@ -2175,7 +2176,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
||||
if (mFastScroll != null) {
|
||||
mFastScroll.onItemCountChanged(getChildCount(), mItemCount);
|
||||
}
|
||||
mInLayout = false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2705,9 +2705,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;
|
||||
|
||||
Reference in New Issue
Block a user