author:wangyimiao

desc:清理缓存协程修复
master
yimiao 3 years ago
parent b6738d6357
commit ec37cafe67

@ -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<Unit> {
override fun clearMemoryCache(context: Context){
GlobalScope.launch(Dispatchers.Main) {
Glide.get(context).clearMemory()
}

Loading…
Cancel
Save