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

Commit a3da7f04 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Fix: Layout children again when padding changed in AbsListView."

parents e2a00996 fe5803a0
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2166,6 +2166,13 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
        // TODO: Move somewhere sane. This doesn't belong in onLayout().
        if (mFastScroll != null) {
            mFastScroll.onItemCountChanged(getChildCount(), mItemCount);
            //This may call internalSetPadding and cause children dirty.
            //So need to layout children again.
            if(isLayoutRequested()){
                mInLayout = true;
                layoutChildren();
                mInLayout = false;
            }
        }
    }