From 61ba26a636c89456d552183411911b28d024f308 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 24 Apr 2017 23:11:35 +0200 Subject: [PATCH] do not make GlideRotateTransformation context a local variable --- .../gallery/helpers/GlideRotateTransformation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/GlideRotateTransformation.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/GlideRotateTransformation.kt index c222f31f0..4e347dd9e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/GlideRotateTransformation.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/GlideRotateTransformation.kt @@ -6,7 +6,7 @@ import android.graphics.Matrix import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool import com.bumptech.glide.load.resource.bitmap.BitmapTransformation -class GlideRotateTransformation(val context: Context, val rotateRotationAngle: Float) : BitmapTransformation(context) { +class GlideRotateTransformation(context: Context, val rotateRotationAngle: Float) : BitmapTransformation(context) { override fun transform(pool: BitmapPool, bitmap: Bitmap, outWidth: Int, outHeight: Int): Bitmap { if (rotateRotationAngle % 360 == 0f)