aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-11-15 22:05:00 -0800
committerScott Jackson <daneren2005@gmail.com>2012-11-15 22:05:00 -0800
commit492918ed06bc5cb347a6886de4d632c59ce5cb4d (patch)
tree53b576afabdcff54c8cb497d97c9603f882bc0b5
parent6a32fcd4600e04fc511680734821a9d9e051c7cc (diff)
downloaddsub-492918ed06bc5cb347a6886de4d632c59ce5cb4d.tar.gz
dsub-492918ed06bc5cb347a6886de4d632c59ce5cb4d.tar.bz2
dsub-492918ed06bc5cb347a6886de4d632c59ce5cb4d.zip
Don't show album header for album lists
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java
index b36be1aa..e9f8bf3a 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java
@@ -53,6 +53,7 @@ public class SelectAlbumActivity extends SubsonicTabActivity {
private boolean hideButtons = false;
private Button moreButton;
private boolean licenseValid;
+ private boolean showHeader = true;
/**
* Called when the activity is first created.
@@ -313,6 +314,7 @@ public class SelectAlbumActivity extends SubsonicTabActivity {
}
private void getAlbumList(final String albumListType, final int size, final int offset) {
+ showHeader = false;
if ("newest".equals(albumListType)) {
setTitle(R.string.main_albums_newest);
@@ -324,6 +326,8 @@ public class SelectAlbumActivity extends SubsonicTabActivity {
setTitle(R.string.main_albums_recent);
} else if ("frequent".equals(albumListType)) {
setTitle(R.string.main_albums_frequent);
+ } else if ("starred".equals(albumListType)) {
+ setTitle(R.string.main_albums_starred);
}
new LoadTask() {
@@ -341,8 +345,10 @@ public class SelectAlbumActivity extends SubsonicTabActivity {
@Override
protected void done(Pair<MusicDirectory, Boolean> result) {
if (!result.getFirst().getChildren().isEmpty()) {
- moreButton.setVisibility(View.VISIBLE);
- entryList.addFooterView(footer);
+ if (!("starred".equals(albumListType))) {
+ moreButton.setVisibility(View.VISIBLE);
+ entryList.addFooterView(footer);
+ }
moreButton.setOnClickListener(new View.OnClickListener() {
@Override
@@ -567,7 +573,9 @@ public class SelectAlbumActivity extends SubsonicTabActivity {
if (songCount > 0) {
getImageLoader().loadImage(getSupportActionBar(), entries.get(0));
- entryList.addHeaderView(createHeader(entries), null, false);
+ if(showHeader) {
+ entryList.addHeaderView(createHeader(entries), null, false);
+ }
entryList.addFooterView(footer);
} else {
hideButtons = true;