fun newInstance(song: Song?): NewPlaylistFragment? { val fragment = NewPlaylistFragment() val bundle = Bundle() bundle.putParcelable(KEY_SONG, song) fragment.setArguments(bundle) return fragment }
Creates a new instance of the New Playlist dialog fragment to create a new playlist and add a song to it .