aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-06-18 17:34:05 -0700
committerScott Jackson <daneren2005@gmail.com>2014-06-18 17:34:05 -0700
commite1b5b6e82a02d09fb7495c6a6ebe8a64cc4e5866 (patch)
treeb7cb842667ccd385c5e563c10933d5e70f5773bd
parent3c20b5991fee728bd324a95beedfaf6e386b8285 (diff)
downloaddsub-e1b5b6e82a02d09fb7495c6a6ebe8a64cc4e5866.tar.gz
dsub-e1b5b6e82a02d09fb7495c6a6ebe8a64cc4e5866.tar.bz2
dsub-e1b5b6e82a02d09fb7495c6a6ebe8a64cc4e5866.zip
Fix web commits
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java1
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java7
2 files changed, 6 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java b/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
index 4b0fc6fe..1edaf58e 100644
--- a/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
@@ -26,6 +26,7 @@ import github.daneren2005.dsub.util.SyncUtil;
import github.daneren2005.dsub.util.CacheCleaner;
import github.daneren2005.dsub.util.Constants;
import github.daneren2005.dsub.util.LoadingTask;
+import github.daneren2005.dsub.util.UserUtil;
import github.daneren2005.dsub.util.Util;
import github.daneren2005.dsub.view.PlaylistAdapter;
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index cfbeaea9..d799877b 100644
--- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -65,6 +65,7 @@ import github.daneren2005.dsub.util.ImageLoader;
import github.daneren2005.dsub.util.ProgressListener;
import github.daneren2005.dsub.util.SilentBackgroundTask;
import github.daneren2005.dsub.util.LoadingTask;
+import github.daneren2005.dsub.util.UserUtil;
import github.daneren2005.dsub.util.Util;
import java.io.File;
import java.text.DateFormat;
@@ -73,6 +74,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
+import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
@@ -792,13 +794,14 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
@Override
protected List<Playlist> doInBackground() throws Throwable {
MusicService musicService = MusicServiceFactory.getMusicService(context);
- List<Playlist> playlists = musicService.getPlaylists(false, context, this);
+ List<Playlist> playlists = new ArrayList<Playlist>();
+ playlists.addAll(musicService.getPlaylists(false, context, this));
// Iterate through and remove all non owned public playlists
Iterator<Playlist> it = playlists.iterator();
while(it.hasNext()) {
Playlist playlist = it.next();
- if(playlist.getPublic() == true && !UserUtil.getCurrentUsername(context).equals(playlist.getOwner)) {
+ if(playlist.getPublic() == true && !UserUtil.getCurrentUsername(context).equals(playlist.getOwner())) {
it.remove();
}
}