aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-03-06 09:14:45 -0800
committerScott Jackson <daneren2005@gmail.com>2015-03-06 09:14:45 -0800
commita313c154155ae46d78f49178dd1e62ab35be082f (patch)
treeebc5cb0271902eddc7fc231cc1c44681c2c93249 /src/github/daneren2005
parent721de001b3aa4ca77154132cbeeb32d08ee23a24 (diff)
downloaddsub-a313c154155ae46d78f49178dd1e62ab35be082f.tar.gz
dsub-a313c154155ae46d78f49178dd1e62ab35be082f.tar.bz2
dsub-a313c154155ae46d78f49178dd1e62ab35be082f.zip
Don't show artist menu items for root folders
Diffstat (limited to 'src/github/daneren2005')
-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 b83d2134..914932d7 100644
--- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -228,7 +228,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
if(!ServerInfo.isMadsonic(context)) {
menu.removeItem(R.id.menu_top_tracks);
}
- if(!ServerInfo.checkServerVersion(context, "1.11") || !ServerInfo.isStockSubsonic(context)) {
+ if(!ServerInfo.checkServerVersion(context, "1.11") || !ServerInfo.isStockSubsonic(context) || (id != null && "root".equals(id))) {
menu.removeItem(R.id.menu_similar_artists);
menu.removeItem(R.id.menu_radio);
}