aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2014-06-19 15:14:41 -0700
committerdaneren2005 <daneren2005@gmail.com>2014-06-19 15:14:41 -0700
commit091c03fc6f911b34ab24f1647a2e759fb65bfa34 (patch)
treed50b1a14d20dde8c971d4abf525fbdf5c046a8e5 /src
parent92730ea3438ef235c0a33dfcde969ad697642539 (diff)
downloaddsub-091c03fc6f911b34ab24f1647a2e759fb65bfa34.tar.gz
dsub-091c03fc6f911b34ab24f1647a2e759fb65bfa34.tar.bz2
dsub-091c03fc6f911b34ab24f1647a2e759fb65bfa34.zip
Added intent for whether or not playlist is owned by user
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java b/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
index 1edaf58e..b07be642 100644
--- a/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
@@ -155,6 +155,9 @@ 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(Util.checkServerVersion(context, "1.8") && UserUtil.getCurrentUsername(context).equals(playlist.getOwner())) {
+ args.putBoolean(Constants.INTENT_EXTRA_NAME_PLAYLIST_OWNER, true);
+ }
fragment.setArguments(args);
replaceFragment(fragment);