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

Commit 22cf0b0c authored by Chet Haase's avatar Chet Haase
Browse files

Unfilled shapes should not report themselves as opaque

Issue #17470611 Stroked, unfilled GradientDrawable shouldn't cast a shadow

Change-Id: Ied60e12c2d2567efec8dac1fe69c77b49ef25b8e
parent 327f7ebc
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1637,6 +1637,11 @@ public class GradientDrawable extends Drawable {
                }
            }

            // An unfilled shape is not opaque over bounds or shape
            if (mColors == null && mColorStateList == null) {
                return;
            }

            // Colors are opaque, so opaqueOverShape=true,
            mOpaqueOverShape = true;
            // and opaqueOverBounds=true if shape fills bounds