1
0
mirror of https://github.com/wasabeef/glide-transformations.git synced 2025-10-04 18:03:21 +08:00

Optimize the code

1. Not to create the mask bitmap.
2. Adjust MaskTransformation’s getId()’s return.
This commit is contained in:
start141
2015-09-17 20:27:30 +08:00
parent 57fcfce9df
commit cb3cd88ed2
3 changed files with 48 additions and 44 deletions

View File

@@ -191,7 +191,6 @@ public class MainAdapter extends RecyclerView.Adapter<MainAdapter.ViewHolder> {
.bitmapTransform(
new SwirlFilterTransformation(mContext, 0.5f, 1.0f, new PointF(0.5f, 0.5f)))
.into(holder.image);
break;
case Brightness:
Glide.with(mContext)