use the default Glide caching at loading widget previews
This commit is contained in:
parent
434d79d46f
commit
14545f9296
1 changed files with 0 additions and 2 deletions
|
@ -6,7 +6,6 @@ import android.view.ViewGroup
|
||||||
import android.widget.RelativeLayout
|
import android.widget.RelativeLayout
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.bumptech.glide.Glide
|
import com.bumptech.glide.Glide
|
||||||
import com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
||||||
import com.simplemobiletools.commons.extensions.getProperTextColor
|
import com.simplemobiletools.commons.extensions.getProperTextColor
|
||||||
import com.simplemobiletools.commons.extensions.toast
|
import com.simplemobiletools.commons.extensions.toast
|
||||||
import com.simplemobiletools.launcher.R
|
import com.simplemobiletools.launcher.R
|
||||||
|
@ -100,7 +99,6 @@ class WidgetsAdapter(
|
||||||
|
|
||||||
Glide.with(activity)
|
Glide.with(activity)
|
||||||
.load(widget.widgetPreviewImage)
|
.load(widget.widgetPreviewImage)
|
||||||
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
|
||||||
.into(widgetPreview.widget_image)
|
.into(widgetPreview.widget_image)
|
||||||
|
|
||||||
widgetPreview.setOnClickListener {
|
widgetPreview.setOnClickListener {
|
||||||
|
|
Loading…
Reference in a new issue