flavor images: enable caches

This commit is contained in:
Andrew Dolgov 2017-06-04 10:36:53 +03:00
parent 3b4da398c2
commit b7b78767a2

View File

@ -1189,8 +1189,8 @@ public class HeadlinesFragment extends Fragment {
.load(article.flavorImageUri) .load(article.flavorImageUri)
.dontAnimate() .dontAnimate()
.dontTransform() .dontTransform()
.diskCacheStrategy(DiskCacheStrategy.NONE) .diskCacheStrategy(DiskCacheStrategy.ALL)
.skipMemoryCache(true) .skipMemoryCache(false)
.listener(new RequestListener<String, GlideDrawable>() { .listener(new RequestListener<String, GlideDrawable>() {
@Override @Override
public boolean onException(Exception e, String model, Target<GlideDrawable> target, boolean isFirstResource) { public boolean onException(Exception e, String model, Target<GlideDrawable> target, boolean isFirstResource) {