From c5293ef21f22e4f869db4c65d29fa748c9462623 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 26 Feb 2015 21:04:40 -0500 Subject: [PATCH] Reduce the size of the LRU cache by 2 --- .../main/java/com/limelight/grid/assets/MemoryAssetLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/limelight/grid/assets/MemoryAssetLoader.java b/app/src/main/java/com/limelight/grid/assets/MemoryAssetLoader.java index c343e939..4fa26fca 100644 --- a/app/src/main/java/com/limelight/grid/assets/MemoryAssetLoader.java +++ b/app/src/main/java/com/limelight/grid/assets/MemoryAssetLoader.java @@ -7,7 +7,7 @@ import com.limelight.LimeLog; public class MemoryAssetLoader implements CachedAppAssetLoader.CachedLoader { private static final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024); - private static final LruCache memoryCache = new LruCache(maxMemory / 4) { + private static final LruCache memoryCache = new LruCache(maxMemory / 8) { @Override protected int sizeOf(String key, Bitmap bitmap) { // Sizeof returns kilobytes