PointF translated = calculateLineEnd(
bounds.centerX(), bounds.centerY(), f.getOffset(), halfSweepEndAngle);
final float cx = translated.x;
final float cy = translated.y;
float donutSizePx;
<BUG>switch(donutMode) {
</BUG>
case PERCENT:
donutSizePx = donutSize * rad;
break;

PointF translated = calculateLineEnd(
bounds.centerX(), bounds.centerY(), f.getOffset(), halfSweepEndAngle);
final float cx = translated.x;
final float cy = translated.y;
float donutSizePx;
switch (donutMode) {
case PERCENT:
donutSizePx = donutSize * rad;
break;
