@Override public void draw(Canvas canvas) { updatePathEffect(); boolean roundedBorders = mBorderCornerRadii != null || (!CSSConstants.isUndefined(mBorderRadius) && mBorderRadius > 0); if ((mBorderStyle == null || mBorderStyle == BorderStyle.SOLID) && !roundedBorders) { drawRectangularBackgroundWithBorders(canvas); } else { drawRoundedBackgroundWithBorders(canvas); } }