aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-11-18 09:52:23 -0800
committerScott Jackson <daneren2005@gmail.com>2014-11-18 09:52:23 -0800
commitfa2183d81ca6dc9198b2bca94aed6c0c97492d55 (patch)
tree6a7c27ef6ea98428e8f17f4c866096d835b0c591 /src
parent38fc0c64a9df5423ce0f38d8f94337c07b6dcf6a (diff)
downloaddsub-fa2183d81ca6dc9198b2bca94aed6c0c97492d55.tar.gz
dsub-fa2183d81ca6dc9198b2bca94aed6c0c97492d55.tar.bz2
dsub-fa2183d81ca6dc9198b2bca94aed6c0c97492d55.zip
Fix not being able to remove on MusicCabinet installations
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java b/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
index caf9079f..8c16edd5 100644
--- a/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
@@ -156,7 +156,7 @@ public class SelectPlaylistFragment extends SelectListFragment<Playlist> {
Bundle args = new Bundle();
args.putString(Constants.INTENT_EXTRA_NAME_PLAYLIST_ID, playlist.getId());
args.putString(Constants.INTENT_EXTRA_NAME_PLAYLIST_NAME, playlist.getName());
- if(ServerInfo.checkServerVersion(context, "1.8") && playlist.getOwner() != null && playlist.getOwner().equals(UserUtil.getCurrentUsername(context))) {
+ if(ServerInfo.checkServerVersion(context, "1.8") && (playlist.getOwner() != null && playlist.getOwner().equals(UserUtil.getCurrentUsername(context)) || playlist.getId().indexOf(".m3u") != -1)) {
args.putBoolean(Constants.INTENT_EXTRA_NAME_PLAYLIST_OWNER, true);
}
fragment.setArguments(args);