Fixed #51 the playlist-list isn't updated when adding a new playlist

This commit is contained in:
Karim Abou Zeid 2015-08-14 22:46:14 +02:00
commit 3f815610e4
2 changed files with 8 additions and 3 deletions

View file

@ -60,7 +60,9 @@ public class CreatePlaylistDialog extends LeakDetectDialogFragment {
if (playlistId != -1 && getActivity() != null) {
//noinspection unchecked
ArrayList<Song> songs = (ArrayList<Song>) getArguments().getSerializable("songs");
PlaylistsUtil.addToPlaylist(getActivity(), songs, playlistId, true);
if (songs != null) {
PlaylistsUtil.addToPlaylist(getActivity(), songs, playlistId, true);
}
}
}
}