Media: keep the name of the file when possible
This commit is contained in:
parent
c8c2cb8ff3
commit
4c19bd3644
10 changed files with 90 additions and 31 deletions
|
|
@ -36,7 +36,12 @@ class FakeMediaPreProcessor : MediaPreProcessor {
|
|||
)
|
||||
)
|
||||
|
||||
override suspend fun process(uri: Uri, mimeType: String, deleteOriginal: Boolean): Result<MediaUploadInfo> = result
|
||||
override suspend fun process(
|
||||
uri: Uri,
|
||||
mimeType: String,
|
||||
deleteOriginal: Boolean,
|
||||
compressIfPossible: Boolean
|
||||
): Result<MediaUploadInfo> = result
|
||||
|
||||
fun givenResult(value: Result<MediaUploadInfo>) {
|
||||
this.result = value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue