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

Commit 29c8b545 authored by John Reck's avatar John Reck
Browse files

Add missing computeOpacity call

Change-Id: I3b668842d4cd072a0625c32cae0a1ade0e322a7d
Fixes: 73285195
Test: GradientDrawableTest#testGetOpacity
parent 4341a66b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2093,6 +2093,7 @@ public class GradientDrawable extends Drawable {
            }
            mRadius = radius;
            mRadiusArray = null;
            computeOpacity();
        }

        public void setCornerRadii(float[] radii) {
@@ -2100,6 +2101,7 @@ public class GradientDrawable extends Drawable {
            if (radii == null) {
                mRadius = 0;
            }
            computeOpacity();
        }

        public void setSize(int width, int height) {