From 091c03fc6f911b34ab24f1647a2e759fb65bfa34 Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Thu, 19 Jun 2014 15:14:41 -0700 Subject: Added intent for whether or not playlist is owned by user --- src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 { 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); -- cgit v1.2.3