From ec37cafe6706fac196b4688d0838bde696aa6567 Mon Sep 17 00:00:00 2001 From: yimiao Date: Mon, 26 Jul 2021 13:59:50 +0800 Subject: [PATCH] =?UTF-8?q?author:wangyimiao=20desc:=E6=B8=85=E7=90=86?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=8D=8F=E7=A8=8B=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/common/commonlib/image/loader/ImageLoader.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commonLib/src/main/java/com/common/commonlib/image/loader/ImageLoader.kt b/commonLib/src/main/java/com/common/commonlib/image/loader/ImageLoader.kt index d386a89..b6c7cc2 100644 --- a/commonLib/src/main/java/com/common/commonlib/image/loader/ImageLoader.kt +++ b/commonLib/src/main/java/com/common/commonlib/image/loader/ImageLoader.kt @@ -2,7 +2,6 @@ package com.common.commonlib.image.loader import android.content.Context import android.graphics.drawable.Drawable -import android.util.Log import android.widget.ImageView import com.bumptech.glide.Glide import com.bumptech.glide.RequestBuilder @@ -78,7 +77,7 @@ object ImageLoader : ILoader { requestBuilder.into(view) } - override fun clearMemoryCache(context: Context) = runBlocking { + override fun clearMemoryCache(context: Context){ GlobalScope.launch(Dispatchers.Main) { Glide.get(context).clearMemory() }