From cce8d120993e492d990d2200cf602efaf7ed198b Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 27 Jul 2019 23:58:16 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/widget/anima/RotateLoading.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/anima/RotateLoading.kt b/app/src/main/java/io/legado/app/ui/widget/anima/RotateLoading.kt index eb14d51e5..606e34686 100644 --- a/app/src/main/java/io/legado/app/ui/widget/anima/RotateLoading.kt +++ b/app/src/main/java/io/legado/app/ui/widget/anima/RotateLoading.kt @@ -77,11 +77,11 @@ class RotateLoading : View { } speedOfArc = (speedOfDegree / 4).toFloat() mPaint = Paint() - mPaint!!.color = loadingColor - mPaint!!.isAntiAlias = true - mPaint!!.style = Paint.Style.STROKE - mPaint!!.strokeWidth = thisWidth.toFloat() - mPaint!!.strokeCap = Paint.Cap.ROUND + mPaint?.color = loadingColor + mPaint?.isAntiAlias = true + mPaint?.style = Paint.Style.STROKE + mPaint?.strokeWidth = thisWidth.toFloat() + mPaint?.strokeCap = Paint.Cap.ROUND } override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) { @@ -112,11 +112,11 @@ class RotateLoading : View { return } - mPaint!!.color = Color.parseColor("#1a000000") + mPaint?.color = Color.parseColor("#1a000000") canvas.drawArc(shadowRectF!!, topDegree.toFloat(), arc, false, mPaint!!) canvas.drawArc(shadowRectF!!, bottomDegree.toFloat(), arc, false, mPaint!!) - mPaint!!.color = loadingColor + mPaint?.color = loadingColor canvas.drawArc(loadingRectF!!, topDegree.toFloat(), arc, false, mPaint!!) canvas.drawArc(loadingRectF!!, bottomDegree.toFloat(), arc, false, mPaint!!)