diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-04-03 18:04:49 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-04-03 18:04:49 -0700 |
commit | 9b9824cfe6aab300603e6f226259aeaf0905ed89 (patch) | |
tree | 07aada7627a683b8aae43f0197051cc9844f2d34 /subsonic-android/src/github/daneren2005 | |
parent | 223a63bfbe02f93f4e2272e4a6918e9d0651bdc3 (diff) | |
download | dsub-9b9824cfe6aab300603e6f226259aeaf0905ed89.tar.gz dsub-9b9824cfe6aab300603e6f226259aeaf0905ed89.tar.bz2 dsub-9b9824cfe6aab300603e6f226259aeaf0905ed89.zip |
ImageLoader: create handler at creation
Diffstat (limited to 'subsonic-android/src/github/daneren2005')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java index 8e014afe..61f20c0a 100644 --- a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java +++ b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java @@ -36,7 +36,6 @@ import github.daneren2005.dsub.R; import github.daneren2005.dsub.domain.MusicDirectory; import github.daneren2005.dsub.service.MusicService; import github.daneren2005.dsub.service.MusicServiceFactory; -import java.io.File; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; @@ -54,6 +53,7 @@ public class ImageLoader implements Runnable { private static final String TAG = ImageLoader.class.getSimpleName(); private static final int CONCURRENCY = 5; + private Handler mHandler = new Handler(); private Context context; private LruCache<String, Bitmap> cache; private final BlockingQueue<Task> queue; @@ -226,7 +226,6 @@ public class ImageLoader implements Runnable { private class Task { private final Context mContext; private final MusicDirectory.Entry mEntry; - private final Handler mHandler; private final int mSize; private final int mSaveSize; private ImageLoaderTaskHandler mTaskHandler; @@ -237,7 +236,6 @@ public class ImageLoader implements Runnable { mSize = size; mSaveSize = saveSize; mTaskHandler = taskHandler; - mHandler = new Handler(); } public void execute() { |