lets cache the directory thumbnails

This commit is contained in:
tibbi 2016-10-09 16:31:23 +02:00
parent e51ff13da7
commit fc0b011d48

View file

@ -50,7 +50,7 @@ public class DirectoryAdapter extends BaseAdapter {
Glide.with(mContext).load(tmb).asGif().diskCacheStrategy(DiskCacheStrategy.NONE).signature(timestampSignature) Glide.with(mContext).load(tmb).asGif().diskCacheStrategy(DiskCacheStrategy.NONE).signature(timestampSignature)
.placeholder(R.color.tmb_background).centerCrop().crossFade().into(viewHolder.dirThumbnail); .placeholder(R.color.tmb_background).centerCrop().crossFade().into(viewHolder.dirThumbnail);
} else { } else {
Glide.with(mContext).load(tmb).diskCacheStrategy(DiskCacheStrategy.NONE).signature(timestampSignature) Glide.with(mContext).load(tmb).diskCacheStrategy(DiskCacheStrategy.RESULT).signature(timestampSignature)
.placeholder(R.color.tmb_background).centerCrop().crossFade().into(viewHolder.dirThumbnail); .placeholder(R.color.tmb_background).centerCrop().crossFade().into(viewHolder.dirThumbnail);
} }