allow probing disk cache when image is fetched from network
@@ -133,7 +133,8 @@ public class EncodedProbeProducer implements Producer<EncodedImage> {
preferredCache.addKeyForAsyncProbing(cacheKey);
mDiskCacheHistory.add(cacheKey);
}
- } else {
+ } else if (mProducerContext.getExtra(ProducerContext.ExtraKeys.ORIGIN).equals("disk")) {
+ // image was fetched from disk cache, therefore it was probed in disk cache by default
mDiskCacheHistory.add(cacheKey);
}
