Replace ContentResolver.delete usage with a backwards-compatible version (#7053)

The previous signature needed API 30, the new one is available since API 1
This commit is contained in:
Jorge Martin Espinosa
2026-06-18 15:48:21 +02:00
committed by GitHub
parent 8ca1ce4c2b
commit 9dc3dec72e
@@ -35,7 +35,7 @@ class DefaultOnSharedData(
for (sharedUri in data.uris) {
// Remove the local copy of the shared file, as it is not needed anymore
if (sharedUri.uri.scheme == ContentResolver.SCHEME_CONTENT && sharedUri.uri.host == fileProvider) {
context.contentResolver.delete(sharedUri.uri, null)
context.contentResolver.delete(sharedUri.uri, null, emptyArray())
}
}
revokeUriPermissions(data.uris.map { it.uri })