aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2014-06-23 15:16:50 -0700
committerdaneren2005 <daneren2005@gmail.com>2014-06-23 15:16:50 -0700
commit20aaa349dc5e7e5fc02b52e2bfccdad07879638f (patch)
tree36b404d3d096a1d652589ba149d6c1d83fb2cf54 /src
parent307f39ef35d814b2aded896d88cddd3586acc854 (diff)
downloaddsub-20aaa349dc5e7e5fc02b52e2bfccdad07879638f.tar.gz
dsub-20aaa349dc5e7e5fc02b52e2bfccdad07879638f.tar.bz2
dsub-20aaa349dc5e7e5fc02b52e2bfccdad07879638f.zip
#305 Remove share button when offline and not allowed
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java2
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 ab739b7b..03a742df 100644
--- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -1208,7 +1208,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
if(add) {
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)) {
+ if(share != null || podcastId != null || !Util.getPreferences(context).getBoolean(Constants.PREFERENCES_KEY_MENU_SHARED, true) && !Util.isOffline(context) && UserUtil.canShare()) {
shareButton.setVisibility(View.GONE);
} else {
shareButton.setOnClickListener(new View.OnClickListener() {