From f2f1229c8de5031b6c357aaac11b5a6e5851d9c2 Mon Sep 17 00:00:00 2001 From: wasabeef Date: Fri, 18 Sep 2015 15:09:03 +0900 Subject: [PATCH] format --- .../glide/transformations/MaskTransformation.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/transformations/src/main/java/jp/wasabeef/glide/transformations/MaskTransformation.java b/transformations/src/main/java/jp/wasabeef/glide/transformations/MaskTransformation.java index fff0b76..4d84d5a 100644 --- a/transformations/src/main/java/jp/wasabeef/glide/transformations/MaskTransformation.java +++ b/transformations/src/main/java/jp/wasabeef/glide/transformations/MaskTransformation.java @@ -43,8 +43,8 @@ public class MaskTransformation implements Transformation { /** * @param maskId If you change the mask file, please also rename the mask file, or Glide will get - * the cache with the old mask. Because getId() return the same values if using the - * same make file name. If you have a good idea please tell us, thanks. + * the cache with the old mask. Because getId() return the same values if using the + * same make file name. If you have a good idea please tell us, thanks. */ public MaskTransformation(Context context, int maskId) { mBitmapPool = Glide.get(context).getBitmapPool(); @@ -55,6 +55,7 @@ public class MaskTransformation implements Transformation { @Override public Resource transform(Resource resource, int outWidth, int outHeight) { Bitmap source = resource.get(); + int width = source.getWidth(); int height = source.getHeight(); @@ -73,9 +74,8 @@ public class MaskTransformation implements Transformation { return BitmapResource.obtain(result, mBitmapPool); } - @Override - public String getId() { - return "MaskTransformation(maskId=" - + mContext.getResources().getResourceEntryName(mMaskId) + ")"; + @Override public String getId() { + return "MaskTransformation(maskId=" + mContext.getResources().getResourceEntryName(mMaskId) + + ")"; } }