From 816c969bb7201810f9271633a1752fcfbddd4cce Mon Sep 17 00:00:00 2001 From: owner Date: Thu, 12 Jul 2012 13:28:47 -0700 Subject: Pin/Unpin/Delete always showing like Select All/Play Now/Play Last --- .../daneren2005/subphonic/activity/SelectAlbumActivity.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'subsonic-android/src') diff --git a/subsonic-android/src/github/daneren2005/subphonic/activity/SelectAlbumActivity.java b/subsonic-android/src/github/daneren2005/subphonic/activity/SelectAlbumActivity.java index 1fd3fa71..72439065 100644 --- a/subsonic-android/src/github/daneren2005/subphonic/activity/SelectAlbumActivity.java +++ b/subsonic-android/src/github/daneren2005/subphonic/activity/SelectAlbumActivity.java @@ -101,10 +101,9 @@ public class SelectAlbumActivity extends SubsonicTabActivity { selectButton = (Button) findViewById(R.id.select_album_select); playNowButton = (Button) findViewById(R.id.select_album_play_now); playLastButton = (Button) findViewById(R.id.select_album_play_last); - pinButton = (Button) footer.findViewById(R.id.select_album_pin); - unpinButton = (Button) footer.findViewById(R.id.select_album_unpin); - unpinButton = (Button) footer.findViewById(R.id.select_album_unpin); - deleteButton = (Button) footer.findViewById(R.id.select_album_delete); + pinButton = (Button) findViewById(R.id.select_album_pin); + unpinButton = (Button) findViewById(R.id.select_album_unpin); + deleteButton = (Button) findViewById(R.id.select_album_delete); moreButton = (Button) footer.findViewById(R.id.select_album_more); emptyView = findViewById(R.id.select_album_empty); @@ -313,9 +312,6 @@ public class SelectAlbumActivity extends SubsonicTabActivity { @Override protected void done(Pair result) { if (!result.getFirst().getChildren().isEmpty()) { - pinButton.setVisibility(View.GONE); - unpinButton.setVisibility(View.GONE); - deleteButton.setVisibility(View.GONE); moreButton.setVisibility(View.VISIBLE); entryList.addFooterView(footer); @@ -550,6 +546,9 @@ public class SelectAlbumActivity extends SubsonicTabActivity { selectButton.setVisibility(View.VISIBLE); playNowButton.setVisibility(View.VISIBLE); playLastButton.setVisibility(View.VISIBLE); + pinButton.setVisibility(View.VISIBLE); + unpinButton.setVisibility(View.VISIBLE); + deleteButton.setVisibility(View.VISIBLE); } boolean isAlbumList = getIntent().hasExtra(Constants.INTENT_EXTRA_NAME_ALBUM_LIST_TYPE); -- cgit v1.2.3