aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2014-06-18 15:30:27 -0700
committerdaneren2005 <daneren2005@gmail.com>2014-06-18 15:30:27 -0700
commit3c20b5991fee728bd324a95beedfaf6e386b8285 (patch)
tree61425f88d79f74248ff3b3ef025dcf5ee6eab6dc /src
parent07c43c93f892c454e4b991bfc7b8903a5b527af6 (diff)
downloaddsub-3c20b5991fee728bd324a95beedfaf6e386b8285.tar.gz
dsub-3c20b5991fee728bd324a95beedfaf6e386b8285.tar.bz2
dsub-3c20b5991fee728bd324a95beedfaf6e386b8285.zip
Don't show Add To Playlist/Star options for < 4.7
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index 62028666..cfbeaea9 100644
--- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -201,6 +201,10 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
}
}
+ if(!Util.checkServerVersion(context, "1.8")) {
+ menu.setGroupVisible(R.id.server_1_8, false);
+ menu.setGroupVisible(R.id.hide_star, false);
+ }
if(!Util.checkServerVersion(context, "1.10.1")) {
menu.setGroupVisible(R.id.server_1_10, false);
}