|
|
@ -2,7 +2,6 @@ package com.common.commonlib.image.loader
|
|
|
|
|
|
|
|
|
|
|
|
import android.content.Context
|
|
|
|
import android.content.Context
|
|
|
|
import android.graphics.drawable.Drawable
|
|
|
|
import android.graphics.drawable.Drawable
|
|
|
|
import android.util.Log
|
|
|
|
|
|
|
|
import android.widget.ImageView
|
|
|
|
import android.widget.ImageView
|
|
|
|
import com.bumptech.glide.Glide
|
|
|
|
import com.bumptech.glide.Glide
|
|
|
|
import com.bumptech.glide.RequestBuilder
|
|
|
|
import com.bumptech.glide.RequestBuilder
|
|
|
@ -78,7 +77,7 @@ object ImageLoader : ILoader {
|
|
|
|
requestBuilder.into(view)
|
|
|
|
requestBuilder.into(view)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
override fun clearMemoryCache(context: Context) = runBlocking<Unit> {
|
|
|
|
override fun clearMemoryCache(context: Context){
|
|
|
|
GlobalScope.launch(Dispatchers.Main) {
|
|
|
|
GlobalScope.launch(Dispatchers.Main) {
|
|
|
|
Glide.get(context).clearMemory()
|
|
|
|
Glide.get(context).clearMemory()
|
|
|
|
}
|
|
|
|
}
|
|
|
|