Fixed #51 the playlist-list isn't updated when adding a new playlist
This commit is contained in:
parent
3c80bd789b
commit
3f815610e4
2 changed files with 8 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue