Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
codeestX committed Nov 22, 2016
1 parent a727ca7 commit 6414a02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/src/main/java/moe/codeest/enviews/ENLoadingView.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public ENLoadingView(Context context, AttributeSet attrs) {
mPath = new Path();
mBgPath = new Path();
isItemReady = new boolean[4];
mFraction = new float[4];
mCurrentRippleX = new float[4];

for (int i = 0; i< 4 ; i++) {
mPaint[i] = new Paint(Paint.ANTI_ALIAS_FLAG);
Expand Down Expand Up @@ -107,8 +109,6 @@ protected void onSizeChanged(int w, int h, int oldw, int oldh) {
mCenterY = h / 2;
mBaseLength = w / 10;
mBgBaseLength = w / 8;
mFraction = new float[4];
mCurrentRippleX = new float[4];
for (int i = 0; i < 4 ;i++) {
mCurrentRippleX[i] = - 2 * mBgBaseLength;
}
Expand Down

0 comments on commit 6414a02

Please sign in to comment.