diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-01-13 20:55:36 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-01-13 20:55:36 -0800 |
commit | 3e035010871614b317f2d3a43550f380015a58de (patch) | |
tree | 2754d60e48f361614f3e766f05db53ee735ca66c /subsonic-android/src/github/daneren2005 | |
parent | 5794fcb1dff0447c31786e04210c3f7e9c7f9302 (diff) | |
download | dsub-3e035010871614b317f2d3a43550f380015a58de.tar.gz dsub-3e035010871614b317f2d3a43550f380015a58de.tar.bz2 dsub-3e035010871614b317f2d3a43550f380015a58de.zip |
Try to force a garbage collection after clearing image cache
Diffstat (limited to 'subsonic-android/src/github/daneren2005')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java | 1 |
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(); } } |