aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authorowner <owner@DeeDee-Laptop>2013-01-13 11:10:54 -0800
committerowner <owner@DeeDee-Laptop>2013-01-13 11:10:54 -0800
commit7f71b2fad2a640396a950316f2150f1cc7fb9c7c (patch)
tree3231989fd6474b447f8e75b65b7104e7e5ae0bcd /subsonic-android/src
parent49a7c9517eec37ec3dd5f9f12cfa0cc8c6ff52b3 (diff)
downloaddsub-7f71b2fad2a640396a950316f2150f1cc7fb9c7c.tar.gz
dsub-7f71b2fad2a640396a950316f2150f1cc7fb9c7c.tar.bz2
dsub-7f71b2fad2a640396a950316f2150f1cc7fb9c7c.zip
Don't put image in actionbar anymore since a big one is displayed right below it
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java1
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java16
2 files changed, 0 insertions, 17 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java
index be6ce059..d85545b0 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java
@@ -673,7 +673,6 @@ public class SelectAlbumActivity extends SubsonicTabActivity {
}
if (songCount > 0) {
- getImageLoader().loadImage(getSupportActionBar(), entries.get(0));
if(showHeader) {
entryList.addHeaderView(createHeader(entries), null, false);
}
diff --git a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java
index 03f66c3e..78533357 100644
--- a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java
+++ b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java
@@ -116,22 +116,6 @@ public class ImageLoader implements Runnable {
queue.offer(new Task(context, entry, imageSizeLarge, false, new RemoteControlClientTaskHandler(remoteControl)));
}
- public void loadImage(ActionBar actionBar, MusicDirectory.Entry entry) {
- if (entry == null || entry.getCoverArt() == null) {
- setUnknownImage(actionBar);
- return;
- }
-
- Drawable drawable = cache.get(getKey(entry.getCoverArt(), imageSizeDefault));
- if (drawable != null) {
- setImage(actionBar, drawable);
- return;
- }
-
- setUnknownImage(actionBar);
- queue.offer(new Task(actionBar.getThemedContext(), entry, imageSizeDefault, false, new ActionBarTaskHandler(actionBar)));
- }
-
private String getKey(String coverArtId, int size) {
return coverArtId + size;
}