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

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

Revert "Don't invalidate list data during layout." am: 866ded50

am: 96b4a68c

Change-Id: I02b34aea90cae2312baa5f8300bc8f6349985470
parents 2aa15664 96b4a68c
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -2168,6 +2168,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
        }
        }


        layoutChildren();
        layoutChildren();
        mInLayout = false;


        mOverscrollMax = (b - t) / OVERSCROLL_LIMIT_DIVISOR;
        mOverscrollMax = (b - t) / OVERSCROLL_LIMIT_DIVISOR;


@@ -2175,7 +2176,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
        if (mFastScroll != null) {
        if (mFastScroll != null) {
            mFastScroll.onItemCountChanged(getChildCount(), mItemCount);
            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.
     * fail to relayout them properly to accommodate for new bounds.
     */
     */
    void handleBoundsChange() {
    void handleBoundsChange() {
        if (mInLayout) {
            return;
        }
        final int childCount = getChildCount();
        final int childCount = getChildCount();
        if (childCount > 0) {
        if (childCount > 0) {
            mDataChanged = true;
            mDataChanged = true;