aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-08-20 13:17:33 -0700
committerScott Jackson <daneren2005@gmail.com>2014-08-20 13:17:33 -0700
commit9ea596766980641929068bcc9ec253bf39cd803b (patch)
tree5a35074fc145af9f44914b57548a46b2eca483ed /src/github
parent9a267552f7464776620276f83bc19ce1342ab019 (diff)
downloaddsub-9ea596766980641929068bcc9ec253bf39cd803b.tar.gz
dsub-9ea596766980641929068bcc9ec253bf39cd803b.tar.bz2
dsub-9ea596766980641929068bcc9ec253bf39cd803b.zip
Remove bookmark from song menu if one doesn't exist
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index 7787c363..23161e7a 100644
--- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -188,6 +188,10 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
}
else {
inflater.inflate(R.menu.select_song_context, menu);
+
+ if(entry.getBookmark() == null) {
+ menu.removeItem(R.id.bookmark_menu_delete);
+ }
}
menu.findItem(entry.isDirectory() ? R.id.album_menu_star : R.id.song_menu_star).setTitle(entry.isStarred() ? R.string.common_unstar : R.string.common_star);
} else {
@@ -218,6 +222,9 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
menu.setGroupVisible(R.id.server_1_8, false);
menu.setGroupVisible(R.id.hide_star, false);
}
+ if(!ServerInfo.checkServerVersion(context, "1.9")) {
+ menu.setGroupVisible(R.id.server_1_9, false);
+ }
if(!ServerInfo.checkServerVersion(context, "1.10.1")) {
menu.setGroupVisible(R.id.server_1_10, false);
}