code cleanup complete
This commit is contained in:
parent
16e765d150
commit
4aed5b81fe
2 changed files with 11 additions and 3 deletions
|
@ -376,21 +376,26 @@ class LibraryViewModel(
|
|||
playlists.isEmpty() -> {
|
||||
Toast.makeText(
|
||||
App.getContext(),
|
||||
"$playlistName created successfully",
|
||||
App.getContext()
|
||||
.getString(R.string.playlist_created_sucessfully, playlistName),
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
}
|
||||
checkPlaylistExists(playlistName).isNotEmpty() -> {
|
||||
Toast.makeText(
|
||||
App.getContext(),
|
||||
"Playlist already exists",
|
||||
App.getContext().getString(R.string.playList_already_exits),
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
}
|
||||
playlists.isNotEmpty() -> {
|
||||
Toast.makeText(
|
||||
App.getContext(),
|
||||
"Added ${songs.size} song(s) to $playlistName",
|
||||
App.getContext().getString(
|
||||
R.string.added_song_count_to_playlist,
|
||||
songs.size,
|
||||
playlistName
|
||||
),
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue