Skip to content

Commit 6414a02

Browse files
committed
fix bug
1 parent a727ca7 commit 6414a02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/main/java/moe/codeest/enviews/ENLoadingView.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public ENLoadingView(Context context, AttributeSet attrs) {
5656
mPath = new Path();
5757
mBgPath = new Path();
5858
isItemReady = new boolean[4];
59+
mFraction = new float[4];
60+
mCurrentRippleX = new float[4];
5961

6062
for (int i = 0; i< 4 ; i++) {
6163
mPaint[i] = new Paint(Paint.ANTI_ALIAS_FLAG);
@@ -107,8 +109,6 @@ protected void onSizeChanged(int w, int h, int oldw, int oldh) {
107109
mCenterY = h / 2;
108110
mBaseLength = w / 10;
109111
mBgBaseLength = w / 8;
110-
mFraction = new float[4];
111-
mCurrentRippleX = new float[4];
112112
for (int i = 0; i < 4 ;i++) {
113113
mCurrentRippleX[i] = - 2 * mBgBaseLength;
114114
}

0 commit comments

Comments
 (0)