Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 732ca464 authored by Alan Viverette's avatar Alan Viverette
Browse files

Update fast scroller item count after layoutChildren()

BUG: 12553181
Change-Id: I4ea1b45d08c153b0146868bf57884d6b8dde6245
parent 22281954
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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);
        }
    }

    /**