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

Commit c4818d86 authored by Romain Guy's avatar Romain Guy Committed by Android Git Automerger
Browse files

am 4c95c537: Merge "Optimize list view scrolls Bug #8108706" into jb-mr2-dev

* commit '4c95c537':
  Optimize list view scrolls Bug #8108706
parents 2ff5a479 4c95c537
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);
        }
    }

    /**