do not make GlideRotateTransformation context a local variable

This commit is contained in:
tibbi 2017-04-24 23:11:35 +02:00
parent 9ef7491d58
commit 61ba26a636
1 changed files with 1 additions and 1 deletions

View File

@ -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)