remove Glide caching

This commit is contained in:
tibbi 2016-10-06 22:09:28 +02:00
parent 0005fb7e0c
commit bd2a39dbb8
2 changed files with 4 additions and 2 deletions

View file

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

View file

@ -50,7 +50,8 @@ public class MediaAdapter extends BaseAdapter {
if (medium.isGif()) {
Glide.with(mContext).load(path).asGif().diskCacheStrategy(DiskCacheStrategy.NONE).into(viewHolder.photoThumbnail);
} else {
Glide.with(mContext).load(path).placeholder(R.color.tmb_background).centerCrop().crossFade().into(viewHolder.photoThumbnail);
Glide.with(mContext).load(path).diskCacheStrategy(DiskCacheStrategy.NONE).placeholder(R.color.tmb_background)
.centerCrop().crossFade().into(viewHolder.photoThumbnail);
}
return convertView;