When don’t keep activities is on all images are unloaded then on app resume it is possible to request image from cache but that image is not shown anywhere so it is not in the memoryCacheUsage (#100)

This commit is contained in:
Hristo Hristov
2017-05-17 09:47:41 +03:00
committed by GitHub
parent e887716352
commit 731403de1f

View File

@@ -192,7 +192,7 @@ public class Cache {
memValue = mMemoryCache.get(data);
if (memValue != null) {
Integer count = mMemoryCacheUsage.get(data);
mMemoryCacheUsage.put(data, count + 1);
mMemoryCacheUsage.put(data, count == null ? 1 : count + 1);
}
}