Media: finally revert to using only uri but with the proper scheme..
This commit is contained in:
parent
7b90f5bfcf
commit
966199a007
11 changed files with 37 additions and 95 deletions
|
|
@ -17,6 +17,7 @@
|
|||
package io.element.android.libraries.matrix.api.media
|
||||
|
||||
import java.io.Closeable
|
||||
import java.io.File
|
||||
|
||||
/**
|
||||
* A wrapper around a media file on the disk.
|
||||
|
|
@ -25,3 +26,7 @@ import java.io.Closeable
|
|||
interface MediaFile : Closeable {
|
||||
fun path(): String
|
||||
}
|
||||
|
||||
fun MediaFile.toFile(): File {
|
||||
return File(path())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue