From 1ad529067d68608240aa246ff0a46edd8a0f5e43 Mon Sep 17 00:00:00 2001 From: davidoskky Date: Sat, 25 Mar 2023 16:42:04 +0100 Subject: [PATCH] Remove unused function --- .../android/utils/glide/GlideUtils.kt | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/utils/glide/GlideUtils.kt b/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/utils/glide/GlideUtils.kt index 979daf7..ead2bec 100644 --- a/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/utils/glide/GlideUtils.kt +++ b/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/utils/glide/GlideUtils.kt @@ -3,11 +3,9 @@ package bou.amine.apps.readerforselfossv2.android.utils.glide import android.content.Context import android.graphics.Bitmap import android.widget.ImageView -import androidx.core.graphics.drawable.RoundedBitmapDrawableFactory import bou.amine.apps.readerforselfossv2.android.utils.CircleImageView import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions -import com.bumptech.glide.request.target.BitmapImageViewTarget import java.io.ByteArrayInputStream import java.io.ByteArrayOutputStream import java.io.InputStream @@ -19,22 +17,6 @@ fun Context.bitmapCenterCrop(url: String, iv: ImageView) = .apply(RequestOptions.centerCropTransform()) .into(iv) -fun Context.circularBitmapDrawable(url: String, iv: ImageView) = - Glide.with(this) - .asBitmap() - .load(url) - .apply(RequestOptions.centerCropTransform()) - .into(object : BitmapImageViewTarget(iv) { - override fun setResource(resource: Bitmap?) { - val circularBitmapDrawable = RoundedBitmapDrawableFactory.create( - resources, - resource - ) - circularBitmapDrawable.isCircular = true - iv.setImageDrawable(circularBitmapDrawable) - } - }) - fun Context.circularDrawable(url: String, view: CircleImageView) { view.textView.text =""