mirror of
https://github.com/wasabeef/glide-transformations.git
synced 2025-07-05 16:02:43 +08:00
Refactor
This commit is contained in:
parent
a66a2863f7
commit
3f733f250f
@ -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() + ")";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user