Media : some improvements and cleaning
This commit is contained in:
parent
129ad0be09
commit
62b66b2111
19 changed files with 90 additions and 89 deletions
|
|
@ -119,7 +119,9 @@ class AndroidMediaPreProcessor @Inject constructor(
|
|||
MediaUploadInfo.AnyFile(file, info)
|
||||
}
|
||||
if (deleteOriginal) {
|
||||
contentResolver.delete(uri, null, null)
|
||||
tryOrNull {
|
||||
contentResolver.delete(uri, null, null)
|
||||
}
|
||||
}
|
||||
result
|
||||
}.mapFailure { MediaPreProcessor.Failure(it) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue