Remove songs from Queue when deleting songs on R

This commit is contained in:
Prathamesh More 2021-12-01 12:50:44 +05:30
parent bc93ff49b4
commit c6f6317839

View file

@ -526,6 +526,7 @@ object MusicUtil : KoinComponent {
@RequiresApi(Build.VERSION_CODES.R) @RequiresApi(Build.VERSION_CODES.R)
fun deleteTracksR(activity: Activity, songs: List<Song>) { fun deleteTracksR(activity: Activity, songs: List<Song>) {
removeFromQueue(songs)
val pendingIntent = MediaStore.createDeleteRequest(activity.contentResolver, songs.map { val pendingIntent = MediaStore.createDeleteRequest(activity.contentResolver, songs.map {
getSongFileUri(it.id) getSongFileUri(it.id)
}) })