Truncate existing file when openOutputStream
This commit is contained in:
parent
67f8dc494e
commit
bacb5fa462
@ -101,7 +101,7 @@ object MediaStoreUtils {
|
||||
|
||||
fun Uri.inputStream() = cr.openInputStream(this) ?: throw FileNotFoundException()
|
||||
|
||||
fun Uri.outputStream() = cr.openOutputStream(this) ?: throw FileNotFoundException()
|
||||
fun Uri.outputStream() = cr.openOutputStream(this, "rwt") ?: throw FileNotFoundException()
|
||||
|
||||
val Uri.displayName: String get() {
|
||||
if (scheme == "file") {
|
||||
|
Loading…
Reference in New Issue
Block a user