Skip to content

Commit

Permalink
Update WaveLoadingView.java
Browse files Browse the repository at this point in the history
添加 attributes.recycle(); 语句。使得TypedArray用完之后回收掉。
  • Loading branch information
hipoom committed Apr 7, 2016
1 parent c102bd9 commit 0097146
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ private void init(Context context, AttributeSet attrs, int defStyleAttr) {
mBottomTitlePaint.setAntiAlias(true);
mBottomTitlePaint.setTextSize(attributes.getDimension(R.styleable.WaveLoadingView_wlv_titleBottomSize, sp2px(DEFAULT_TITLE_BOTTOM_SIZE)));
mBottomTitle = attributes.getString(R.styleable.WaveLoadingView_wlv_titleBottom);
attributes.recycle();
}

@Override
Expand Down Expand Up @@ -587,4 +588,4 @@ protected int dp2px(float dp) {
return (int) (dp * scale + 0.5f);
}

}
}

0 comments on commit 0097146

Please sign in to comment.