Skip to content

Commit

Permalink
fix: delete assets permanently deleted instead of trash in android R
Browse files Browse the repository at this point in the history
  • Loading branch information
shenlong-tanwen committed Aug 3, 2023
1 parent 0e44956 commit 38d224d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class PhotoManagerDeleteManager(val context: Context, private var activity: Acti
@RequiresApi(Build.VERSION_CODES.R)
fun deleteInApi30(uris: List<Uri?>, 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,
Expand Down

0 comments on commit 38d224d

Please sign in to comment.