From 3e035010871614b317f2d3a43550f380015a58de Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sun, 13 Jan 2013 20:55:36 -0800 Subject: Try to force a garbage collection after clearing image cache --- subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java | 1 + 1 file changed, 1 insertion(+) (limited to 'subsonic-android/src/github/daneren2005') diff --git a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java index a5038273..9083a2e4 100644 --- a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java +++ b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java @@ -215,6 +215,7 @@ public class ImageLoader implements Runnable { } catch(OutOfMemoryError e) { Log.w(TAG, "Ran out of memory trying to load image, try cleanup and retry"); cache.clear(); + System.gc(); loadImage(); } } -- cgit v1.2.3