[2.8.0-f] 方向盘向左时竖线bug

This commit is contained in:
yangyakun
2022-11-10 10:45:05 +08:00
parent 4cdcd9bad2
commit e75db415e7

View File

@@ -110,7 +110,11 @@ class CircularProgressView @JvmOverloads constructor(
mRectF?.let { it1 ->
sweepGradient()
var degree: Float = 3.6f * (mProgress.toFloat())
it.drawArc(it1, 275.0f, degree, false, mProgPaint)
if(mProgress>=0) {
it.drawArc(it1, 275.0f, degree, false, mProgPaint)
}else{
it.drawArc(it1, 265.0f, degree, false, mProgPaint)
}
}
}