Update fast scroller item count after layoutChildren()
BUG: 12553181 Change-Id: I4ea1b45d08c153b0146868bf57884d6b8dde6245
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user