diff --git a/android/src/main/kotlin/com/fluttercandies/photo_manager/core/PhotoManagerDeleteManager.kt b/android/src/main/kotlin/com/fluttercandies/photo_manager/core/PhotoManagerDeleteManager.kt index bd956a9e..3d35e3f6 100644 --- a/android/src/main/kotlin/com/fluttercandies/photo_manager/core/PhotoManagerDeleteManager.kt +++ b/android/src/main/kotlin/com/fluttercandies/photo_manager/core/PhotoManagerDeleteManager.kt @@ -57,7 +57,7 @@ class PhotoManagerDeleteManager(val context: Context, private var activity: Acti @RequiresApi(Build.VERSION_CODES.R) fun deleteInApi30(uris: List, resultHandler: ResultHandler) { this.androidRHandler = resultHandler - val pendingIntent = MediaStore.createTrashRequest(cr, uris.mapNotNull { it }, true) + val pendingIntent = MediaStore.createDeleteRequest(cr, uris.mapNotNull { it }) activity?.startIntentSenderForResult( pendingIntent.intentSender, androidRDeleteRequestCode,