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

Skip to content

Commit 21f5062

Browse files
author
dinuscxj
committed
fix readme.md bug
1 parent 612d1bc commit 21f5062

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

README-ZH.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
* CollisionLoadingRenderer
2424

2525
#### 风景系列
26-
*DayNightRenderer
27-
*ElectricFanLoadingRenderer
26+
* DayNightRenderer
27+
* ElectricFanLoadingRenderer
2828

2929

3030
## 待办事项

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
* CollisionLoadingRenderer
2626

2727
#### Scenery
28-
*DayNightRenderer
29-
*ElectricFanLoadingRenderer
28+
* DayNightRenderer
29+
* ElectricFanLoadingRenderer
3030

3131
## TODO
3232
When I feel less bugs enough, I will add a gradle dependency. So I hope you will make more Suggestions or Issues.

library/src/main/java/app/dinus/com/loadingdrawable/render/scenery/DayNightRenderer.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ public void onAnimationRepeat(Animator animator) {
8282

8383
private int mCurrentColor;
8484

85-
private float mStrokeInsetX;
8685
private float mMaxStarOffsets;
8786

8887
private float mStarRadius;
@@ -141,7 +140,6 @@ private void init(Context context) {
141140
mCurrentColor = DEFAULT_COLOR;
142141

143142
setDuration(ANIMATION_DURATION);
144-
setInsets((int) getWidth(), (int) getHeight());
145143
}
146144

147145
private void setupPaint() {
@@ -332,10 +330,6 @@ private Path createMoonPath(float moonCenterX, float moonCenterY) {
332330
return path;
333331
}
334332

335-
private void setInsets(int width, int height) {
336-
mStrokeInsetX = width / 8;
337-
}
338-
339333
private class StarHolder {
340334
public int mAlpha;
341335
public PointF mCurrentPoint;

0 commit comments

Comments
 (0)