aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-09-23 15:24:56 -0700
committerScott Jackson <daneren2005@gmail.com>2014-09-23 15:24:56 -0700
commitc78ed40edf799dacd674f8182fe540b0994e5837 (patch)
treef41b00309246ae7d46a00893f8502f4f8a279a7f
parent1630d9f9cd2ebdfc87041cb6ff718cc9abb2a61d (diff)
downloaddsub-c78ed40edf799dacd674f8182fe540b0994e5837.tar.gz
dsub-c78ed40edf799dacd674f8182fe540b0994e5837.tar.bz2
dsub-c78ed40edf799dacd674f8182fe540b0994e5837.zip
Only display bookmark button if server supports it
-rw-r--r--src/github/daneren2005/dsub/fragments/NowPlayingFragment.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java b/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java
index 903673b8..e6a325f7 100644
--- a/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java
+++ b/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java
@@ -934,7 +934,11 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis
rateBadButton.setVisibility(View.GONE);
rateGoodButton.setVisibility(View.GONE);
} else {
- bookmarkButton.setVisibility(View.VISIBLE);
+ if(ServerInfo.canBookmark(context)) {
+ bookmarkButton.setVisibility(View.VISIBLE);
+ } else {
+ bookmarkButton.setVisibility(View.GONE);
+ }
rateBadButton.setVisibility(View.VISIBLE);
rateGoodButton.setVisibility(View.VISIBLE);
}