From 7f71b2fad2a640396a950316f2150f1cc7fb9c7c Mon Sep 17 00:00:00 2001 From: owner Date: Sun, 13 Jan 2013 11:10:54 -0800 Subject: Don't put image in actionbar anymore since a big one is displayed right below it --- .../daneren2005/dsub/activity/SelectAlbumActivity.java | 1 - .../src/github/daneren2005/dsub/util/ImageLoader.java | 16 ---------------- 2 files changed, 17 deletions(-) (limited to 'subsonic-android') 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; } -- cgit v1.2.3