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

Commit 7584b074 authored by Phil Weaver's avatar Phil Weaver Committed by android-build-merger
Browse files

Don't invalidate list data during layout. am: a9d976f3

am: 84a0d97b

Change-Id: I0dc549674ed7e026cbe15ac6d06626305729e7b8
parents ba4a81b3 84a0d97b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2168,7 +2168,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
        }

        layoutChildren();
        mInLayout = false;

        mOverscrollMax = (b - t) / OVERSCROLL_LIMIT_DIVISOR;

@@ -2176,6 +2175,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
        if (mFastScroll != null) {
            mFastScroll.onItemCountChanged(getChildCount(), mItemCount);
        }
        mInLayout = false;
    }

    /**
@@ -2705,6 +2705,9 @@ 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;