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

Commit d0872bd3 authored by Michael Jurka's avatar Michael Jurka
Browse files

Fixing invalidate problems in software rendered mode

parent cf38b0ce
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -7216,8 +7216,16 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
            mPrivateFlags &= ~DRAWN;
            mPrivateFlags |= INVALIDATED;
            mPrivateFlags &= ~DRAWING_CACHE_VALID;
            if (mParent != null && mAttachInfo != null && mAttachInfo.mHardwareAccelerated) {
            if (mParent != null && mAttachInfo != null) {
                if (mAttachInfo.mHardwareAccelerated) {
                    mParent.invalidateChild(this, null);
                } else {
                    final Rect r = mAttachInfo.mTmpInvalRect;
                    r.set(0, 0, mRight - mLeft, mBottom - mTop);
                    // Don't call invalidate -- we don't want to internally scroll
                    // our own bounds
                    mParent.invalidateChild(this, r);
                }
            }
        }
    }