code: private void drawShape(
              Canvas canvas,
              Paint paint,
              Path path,
              ShapeAppearanceModel shapeAppearanceModel,
              RectF bounds) {
          if (shapeAppearanceModel.isRoundRect()) {
              float cornerSize = shapeAppearanceModel.getTopRightCorner().getCornerSize();
              canvas.drawRoundRect(bounds, cornerSize, cornerSize, paint);
          } else {
              canvas.drawPath(path, paint);
          }
      }
docs: Draw the path or try to draw a round rect if possible.