mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
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) {
|
for (sharedUri in data.uris) {
|
||||||
// Remove the local copy of the shared file, as it is not needed anymore
|
// 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) {
|
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 })
|
revokeUriPermissions(data.uris.map { it.uri })
|
||||||
|
|||||||
Reference in New Issue
Block a user