fun toggleSong(songId: Long?, songName: String?, albumName: String?, artistName: String?) { if (getSongId(songId) == null) { addSongId(songId, songName, albumName, artistName) } else { removeItem(songId) } }
Toggle the current song as favorite