1
0
mirror of https://github.com/wasabeef/glide-transformations.git synced 2025-07-05 16:02:43 +08:00
This commit is contained in:
wasabeef 2015-01-12 22:03:17 +09:00
parent a66a2863f7
commit 3f733f250f

View File

@ -41,6 +41,7 @@ public class SwirlFilterTransformation implements Transformation<Bitmap> {
public SwirlFilterTransformation(Context context, BitmapPool pool) {
mContext = context;
mBitmapPool = pool;
mCenter = new PointF();
}
/**
@ -76,10 +77,7 @@ public class SwirlFilterTransformation implements Transformation<Bitmap> {
@Override
public String getId() {
if (mCenter == null) {
mCenter = new PointF();
}
return "SwirlFilterTransformation(radius=" + mRadius +
",angle=" + mAngle + ",center=" + mCenter + ")";
",angle=" + mAngle + ",center=" + mCenter.toString() + ")";
}
}