Rect bounds = getBounds();
<BUG>canvas.clipRect(0, 0, bounds.width(), bounds.height());</BUG>
forePaint.setStrokeWidth(width);
RectF boundsF = new RectF(bounds);
<BUG>boundsF.inset(width / 2 + barPadding, width / 2 + barPadding);
</BUG>
if (style != ProgressBar.Style.CircularDeterminate) {
long time = System.currentTimeMillis() - startTime;
float t = (float) (time % angleDuration) / angleDuration;
float t2 = (float) (time % sweepDuration) / sweepDuration;

Rect bounds = getBounds();
forePaint.setStrokeWidth(width);
RectF boundsF = new RectF(bounds);
boundsF.inset(width / 2 + barPadding + 0.1f, width / 2 + barPadding + 0.1f);
if (style != ProgressBar.Style.CircularDeterminate) {
long time = System.currentTimeMillis() - startTime;
float t = (float) (time % angleDuration) / angleDuration;
float t2 = (float) (time % sweepDuration) / sweepDuration;
