fix saving images on the SD card
This commit is contained in:
parent
e8696fd29e
commit
740a1e4e20
|
@ -49,7 +49,7 @@ class PhotoProcessor(val activity: MainActivity, val uri: Uri?, val currCameraId
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
var document = activity.getDocumentFile(path)
|
var document = activity.getDocumentFile(path.getParentPath())
|
||||||
document = document?.createFile("", path.substring(path.lastIndexOf('/') + 1))
|
document = document?.createFile("", path.substring(path.lastIndexOf('/') + 1))
|
||||||
fos = activity.contentResolver.openOutputStream(document?.uri)
|
fos = activity.contentResolver.openOutputStream(document?.uri)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue