mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-18 14:28:00 +01:00
remove Glide caching
This commit is contained in:
parent
0005fb7e0c
commit
bd2a39dbb8
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue