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:
committed by
GitHub
parent
8ca1ce4c2b
commit
9dc3dec72e
+1
-1
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user