diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-01-17 15:06:08 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-01-17 15:06:08 -0800 |
commit | 8ddcb7446b42c7892982220170954d34996c11d6 (patch) | |
tree | e4ff600dcf5a4264e930bda10b0d5980186926e0 | |
parent | 82c49dc8fda740a06f39c227167e9845b85b7ba9 (diff) | |
download | dsub-8ddcb7446b42c7892982220170954d34996c11d6.tar.gz dsub-8ddcb7446b42c7892982220170954d34996c11d6.tar.bz2 dsub-8ddcb7446b42c7892982220170954d34996c11d6.zip |
Don't display share button on artist header
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index 0d160a59..d13d9fa5 100644 --- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -1464,7 +1464,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter }
private void setupButtonEvents(View header) {
ImageView shareButton = (ImageView) header.findViewById(R.id.select_album_share);
- if(share != null || podcastId != null || !Util.getPreferences(context).getBoolean(Constants.PREFERENCES_KEY_MENU_SHARED, true) || Util.isOffline(context) || !UserUtil.canShare()) {
+ if(share != null || podcastId != null || !Util.getPreferences(context).getBoolean(Constants.PREFERENCES_KEY_MENU_SHARED, true) || Util.isOffline(context) || !UserUtil.canShare() || artistInfo != null) {
shareButton.setVisibility(View.GONE);
} else {
shareButton.setOnClickListener(new View.OnClickListener() {
|