fix saving images on the SD card

This commit is contained in:
tibbi 2018-02-26 11:26:58 +01:00
parent e8696fd29e
commit 740a1e4e20
1 changed files with 1 additions and 1 deletions

View File

@ -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 {