mirror of
https://github.com/wasabeef/glide-transformations.git
synced 2025-07-06 00:12: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) {
|
public SwirlFilterTransformation(Context context, BitmapPool pool) {
|
||||||
mContext = context;
|
mContext = context;
|
||||||
mBitmapPool = pool;
|
mBitmapPool = pool;
|
||||||
|
mCenter = new PointF();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -76,10 +77,7 @@ public class SwirlFilterTransformation implements Transformation<Bitmap> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getId() {
|
public String getId() {
|
||||||
if (mCenter == null) {
|
|
||||||
mCenter = new PointF();
|
|
||||||
}
|
|
||||||
return "SwirlFilterTransformation(radius=" + mRadius +
|
return "SwirlFilterTransformation(radius=" + mRadius +
|
||||||
",angle=" + mAngle + ",center=" + mCenter + ")";
|
",angle=" + mAngle + ",center=" + mCenter.toString() + ")";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user