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

Commit 41207bce authored by Fabrice Di Meglio's avatar Fabrice Di Meglio
Browse files

Fix bug #10205316 CTS (KLP): android.graphics tests are failing

- fix null Shader case during copy

Related to https://googleplex-android-review.googlesource.com/#/c/336815/7

Change-Id: I920d6bb181ddb92d6f771e5060fd1858430e71ad
parent 89d16f75
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -431,6 +431,8 @@ public class Paint {
        mRasterizer = paint.mRasterizer;
        if (paint.mShader != null) {
            mShader = paint.mShader.copy();
        } else {
            mShader = null;
        }
        mTypeface = paint.mTypeface;
        mXfermode = paint.mXfermode;