Fixed new playlist crash with same name
This commit is contained in:
parent
01be471576
commit
ac902d0bf0
2 changed files with 17 additions and 7 deletions
|
@ -65,9 +65,8 @@ class CreatePlaylistDialog : DialogFragment() {
|
|||
val playlistName = playlistView.text.toString()
|
||||
if (!TextUtils.isEmpty(playlistName)) {
|
||||
libraryViewModel.addToPlaylist(playlistName, songs)
|
||||
|
||||
} else {
|
||||
playlistContainer.error = "Playlist is can't be empty"
|
||||
playlistContainer.error = "Playlist name can't be empty"
|
||||
}
|
||||
}
|
||||
.create()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue