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

Commit 4f674407 authored by Adam Cohen's avatar Adam Cohen Committed by Android (Google) Code Review
Browse files

Merge "StackView rendering fix for non-hardware accelerated apps and hardware layers"

parents 3b743131 1ff65d10
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1207,6 +1207,7 @@ public class StackView extends AdapterViewAnimator {
        void invalidateGlobalRegion(View v, Rect r) {
            // We need to make a new rect here, so as not to modify the one passed
            globalInvalidateRect.set(r);
            globalInvalidateRect.union(0, 0, getWidth(), getHeight());
            View p = v;
            if (!(v.getParent() != null && v.getParent() instanceof View)) return;

@@ -1224,7 +1225,8 @@ public class StackView extends AdapterViewAnimator {
                p = (View) p.getParent();
                parentRect.set(p.getScrollX(), p.getScrollY(),
                        p.getWidth() + p.getScrollX(), p.getHeight() + p.getScrollY());

                p.invalidate(globalInvalidateRect.left, globalInvalidateRect.top,
                        globalInvalidateRect.right, globalInvalidateRect.bottom);
            }

            p.invalidate(globalInvalidateRect.left, globalInvalidateRect.top,