package com.takusemba.spotlight.shapes;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PointF;
import android.support.annotation.RequiresApi;
import android.view.View;

@RequiresApi(21)
public class RoundedRectangle extends Shape {
	private float mHalfWidth;
	private float mHalfHeight;
	private float mRadius;

	private float mAnimWidth;
	private float mAnimHeight;

	public RoundedRectangle(View view, float radius) {
		this(view, 0, radius);
	}

	public RoundedRectangle(View view, float offset, float radius) {
		setPoint(view);
		this.mHalfHeight = view.getHeight() / 2 + offset;
		this.mHalfWidth = view.getWidth() / 2 + offset;
		this.mRadius = radius;
	}

	public RoundedRectangle(PointF pointF, float width, float height, float radius) {
		this.mPoint = pointF;
		this.mHalfWidth = width / 2;
		this.mHalfHeight = height / 2;
		this.mRadius = radius;
	}

	@Override
	void draw(Canvas canvas, float animValue, Paint paint) {
		mAnimWidth = mHalfWidth * animValue;
		mAnimHeight = mHalfHeight * animValue;

		canvas.drawRoundRect(mPoint.x - mAnimWidth,
				mPoint.y - mAnimHeight,
				mPoint.x + mAnimWidth,
				mPoint.y + mAnimHeight, mRadius,
				mRadius,
				paint);
	}
}

@@ -350,64 +350,8 @@
 s;%0A%0A
-%09private float mAnimWidth;%0A%09private float mAnimHeight;%0A%0A
 %09pub
@@ -854,16 +854,23 @@
 erride%0A%09
+public 
 void dra
@@ -920,16 +920,22 @@
 nt) %7B%0A%09%09
+float 
 mAnimWid
@@ -965,16 +965,22 @@
 alue;%0A%09%09
+float 
 mAnimHei

Fix issues