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

Commit 5549cb59 authored by Romain Guy's avatar Romain Guy
Browse files

Optimize list view scrolls

Bug #8108706

Change-Id: I8679b584132e82b7bb3301a38800de4ddfc57be6
parent 341666c4
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4486,16 +4486,21 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
    public void offsetChildrenTopAndBottom(int offset) {
        final int count = mChildrenCount;
        final View[] children = mChildren;
        boolean invalidate = false;

        for (int i = 0; i < count; i++) {
            final View v = children[i];
            v.mTop += offset;
            v.mBottom += offset;
            if (v.mDisplayList != null) {
                invalidate = true;
                v.mDisplayList.offsetTopAndBottom(offset);
                invalidateViewProperty(false, false);
            }
        }

        if (invalidate) {
            invalidateViewProperty(false, false);
        }
    }

    /**