Update fast scroller item count after layoutChildren()

BUG: 12553181
Change-Id: I4ea1b45d08c153b0146868bf57884d6b8dde6245
This commit is contained in:
Alan Viverette
2014-03-07 16:49:32 -08:00
parent 2228195452
commit 732ca4642f

View File

@@ -2135,15 +2135,15 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
mRecycler.markChildrenDirty();
}
// TODO: Move somewhere sane. This doesn't belong in onLayout().
if (mFastScroll != null) {
mFastScroll.onItemCountChanged(childCount, mItemCount);
}
layoutChildren();
mInLayout = false;
mOverscrollMax = (b - t) / OVERSCROLL_LIMIT_DIVISOR;
// TODO: Move somewhere sane. This doesn't belong in onLayout().
if (mFastScroll != null) {
mFastScroll.onItemCountChanged(getChildCount(), mItemCount);
}
}
/**