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

Commit 40fa5ea4 authored by ztenghui's avatar ztenghui Committed by Android (Google) Code Review
Browse files

Merge "Don't draw when bounds are negative"

parents a130c1a7 34c623cb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -249,8 +249,8 @@ public class VectorDrawable extends Drawable {
    @Override
    public void draw(Canvas canvas) {
        final Rect bounds = getBounds();
        if (bounds.width() == 0 || bounds.height() == 0) {
            // too small to draw
        if (bounds.width() <= 0 || bounds.height() <= 0) {
            // Nothing to draw
            return;
        }