diff options
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/activity/SelectPlaylistActivity.java | 2 | ||||
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/parser/PlaylistsParser.java | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SelectPlaylistActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SelectPlaylistActivity.java index a88cdcaf..70904ff7 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/SelectPlaylistActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/SelectPlaylistActivity.java @@ -112,7 +112,7 @@ public class SelectPlaylistActivity extends SubsonicTabActivity implements Adapt @Override protected void done(List<Playlist> result) { - list.setAdapter(new PlaylistAdapter(SelectPlaylistActivity.this, PlaylistAdapter.PlaylistComparator.sort(result))); + list.setAdapter(new PlaylistAdapter(SelectPlaylistActivity.this, result)); emptyTextView.setVisibility(result.isEmpty() ? View.VISIBLE : View.GONE); } }; diff --git a/subsonic-android/src/github/daneren2005/dsub/service/parser/PlaylistsParser.java b/subsonic-android/src/github/daneren2005/dsub/service/parser/PlaylistsParser.java index c6a18580..7d6a587f 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/parser/PlaylistsParser.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/parser/PlaylistsParser.java @@ -22,6 +22,7 @@ import android.content.Context; import github.daneren2005.dsub.R; import github.daneren2005.dsub.domain.Playlist; import github.daneren2005.dsub.util.ProgressListener; +import github.daneren2005.dsub.view.PlaylistAdapter; import org.xmlpull.v1.XmlPullParser; import java.io.Reader; @@ -65,7 +66,7 @@ public class PlaylistsParser extends AbstractParser { validate(); updateProgress(progressListener, R.string.parser_reading_done); - return result; + return PlaylistAdapter.PlaylistComparator.sort(result); } }
\ No newline at end of file |