Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b9a8cf0

Browse files
author
dinus_developer
authored
Merge pull request dinuscxj#7 from hamberluo/master
fix bug if circle count is not 5
2 parents 16ad102 + 35563d1 commit b9a8cf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/app/dinus/com/loadingdrawable/render/circle/jump/SwapLoadingRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void draw(Canvas canvas, Rect bounds) {
8080
float intervalWidth = circleRadius;
8181

8282
float circleDiameter = mSwapIndex == CIRCLE_COUNT - 1
83-
? circleRadius * 2 * (CIRCLE_COUNT + 1)
83+
? circleRadius * (CIRCLE_COUNT - 1) * 3
8484
: circleRadius * 3;
8585

8686
//x^2 + y^2 = (3 * circleRadius / 2) ^ 2

0 commit comments

Comments
 (0)