mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user