use the new way of getting file URIs at CopyMoveTask too

This commit is contained in:
tibbi 2022-06-15 16:22:22 +02:00
parent aebda1f471
commit e919f1507b

View file

@ -323,7 +323,7 @@ class CopyMoveTask(
// if we delete multiple files from Downloads folder on Android 11 or 12 without being a Media Management app, show the confirmation dialog just once
private fun deleteProtectedFiles() {
if (mFileDirItemsToDelete.isNotEmpty()) {
val fileUris = activity.getUrisPathsFromFileDirItems(mFileDirItemsToDelete).second
val fileUris = activity.getFileUrisFromFileDirItems(mFileDirItemsToDelete)
activity.deleteSDK30Uris(fileUris) { success ->
if (success) {
mFileDirItemsToDelete.forEach {