From 0c3815da943621544b38076459b013a11d5a91de Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Wed, 13 Feb 2013 09:56:28 -0800 Subject: Increase amount of memory dedicated to image loading --- subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subsonic-android') diff --git a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java index 9586e24d..35e24039 100644 --- a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java +++ b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java @@ -64,7 +64,7 @@ public class ImageLoader implements Runnable { public ImageLoader(Context context) { this.context = context; final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024); - final int cacheSize = maxMemory / 4; + final int cacheSize = maxMemory / 2; cache = new LruCache(cacheSize) { @Override protected int sizeOf(String key, Bitmap bitmap) { -- cgit v1.2.3