make mPaint final

This commit is contained in:
Dmitry Gladkov 2016-01-19 13:52:25 +02:00
parent e7bba10302
commit 8aaec19c12
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import android.view.View;
public class LinearGradientView extends View {
private Paint mPaint = new Paint();
private final Paint mPaint = new Paint();
private LinearGradient mShader;
private float[] mLocations;
private float[] mStartPos = {0, 0};