aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-01-13 20:55:36 -0800
committerScott Jackson <daneren2005@gmail.com>2013-01-13 20:55:36 -0800
commit3e035010871614b317f2d3a43550f380015a58de (patch)
tree2754d60e48f361614f3e766f05db53ee735ca66c
parent5794fcb1dff0447c31786e04210c3f7e9c7f9302 (diff)
downloaddsub-3e035010871614b317f2d3a43550f380015a58de.tar.gz
dsub-3e035010871614b317f2d3a43550f380015a58de.tar.bz2
dsub-3e035010871614b317f2d3a43550f380015a58de.zip
Try to force a garbage collection after clearing image cache
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java1
1 files changed, 1 insertions, 0 deletions
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();
}
}