mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-01-30 15:04:49 +01:00
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 ""
|
||||
}
|
||||
|
||||
var document = activity.getDocumentFile(path)
|
||||
var document = activity.getDocumentFile(path.getParentPath())
|
||||
document = document?.createFile("", path.substring(path.lastIndexOf('/') + 1))
|
||||
fos = activity.contentResolver.openOutputStream(document?.uri)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user