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

Commit 6bcfe893 authored by Chet Haase's avatar Chet Haase Committed by Android Git Automerger
Browse files

am 0f8e402e: Force invalidates on non-visible views. DO NOT MERGE

* commit '0f8e402e':
  Force invalidates on non-visible views. DO NOT MERGE
parents a9becd00 0f8e402e
Loading
Loading
Loading
Loading
+14 −12
Original line number Diff line number Diff line
@@ -4100,9 +4100,11 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
                final int left = mLeft;
                final int top = mTop;

                if ((mGroupFlags & FLAG_CLIP_CHILDREN) != FLAG_CLIP_CHILDREN ||
                        dirty.intersect(0, 0, mRight - left, mBottom - top) ||
                        (mPrivateFlags & DRAW_ANIMATION) == DRAW_ANIMATION) {
                if ((mGroupFlags & FLAG_CLIP_CHILDREN) == FLAG_CLIP_CHILDREN) {
                    if (!dirty.intersect(0, 0, mRight - left, mBottom - top)) {
                        dirty.setEmpty();
                    }
                }
                mPrivateFlags &= ~DRAWING_CACHE_VALID;

                location[CHILD_LEFT_INDEX] = left;
@@ -4114,7 +4116,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
                }

                return mParent;
                }

            } else {
                mPrivateFlags &= ~DRAWN & ~DRAWING_CACHE_VALID;

+2 −0
Original line number Diff line number Diff line
@@ -870,6 +870,8 @@ public final class ViewRootImpl implements ViewParent,
        if (dirty == null) {
            invalidate();
            return null;
        } else if (dirty.isEmpty()) {
            return null;
        }

        if (mCurScrollY != 0 || mTranslator != null) {