diff options
author | owner <owner@DeeDee-Laptop> | 2012-07-12 13:28:47 -0700 |
---|---|---|
committer | owner <owner@DeeDee-Laptop> | 2012-07-12 13:28:47 -0700 |
commit | 816c969bb7201810f9271633a1752fcfbddd4cce (patch) | |
tree | 596663bd80043191f1611076bae04d1cdd0408a6 /subsonic-android/src/github | |
parent | eb5dc70027fa6921d179db12369ad188680cbf7d (diff) | |
download | dsub-816c969bb7201810f9271633a1752fcfbddd4cce.tar.gz dsub-816c969bb7201810f9271633a1752fcfbddd4cce.tar.bz2 dsub-816c969bb7201810f9271633a1752fcfbddd4cce.zip |
Pin/Unpin/Delete always showing like Select All/Play Now/Play Last
Diffstat (limited to 'subsonic-android/src/github')
-rw-r--r-- | subsonic-android/src/github/daneren2005/subphonic/activity/SelectAlbumActivity.java | 13 |
1 files changed, 6 insertions, 7 deletions
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<MusicDirectory, Boolean> 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); |