fix#【#988】 【频繁】鹰眼演示速度区域显示负数

This commit is contained in:
wujifei
2021-07-29 14:39:18 +08:00
committed by zhongchao
parent 289e5ef997
commit a27a74d035

View File

@@ -167,6 +167,9 @@ public class ArcView extends View {
if (value > maxValue) {
value = maxValue;
}
if (value < 0) {
value = 0;
}
currentValue = value;
//计算弧度比重
float scale = (float) currentValue / maxValue;