diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-09-23 15:24:56 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-09-23 15:24:56 -0700 |
commit | c78ed40edf799dacd674f8182fe540b0994e5837 (patch) | |
tree | f41b00309246ae7d46a00893f8502f4f8a279a7f | |
parent | 1630d9f9cd2ebdfc87041cb6ff718cc9abb2a61d (diff) | |
download | dsub-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.java | 6 |
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);
}
|