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

Commit 25877af2 authored by Chet Haase's avatar Chet Haase Committed by Android (Google) Code Review
Browse files

Merge "Unfilled shapes should not report themselves as opaque" into lmp-dev

parents cf79a56c 22cf0b0c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1638,6 +1638,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