improve the sd card treeuri check at saving photos

This commit is contained in:
tibbi 2018-01-13 09:30:45 +01:00
parent c4b977517b
commit d38eb229d7
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class PhotoProcessor(val activity: MainActivity, val uri: Uri?, val currCameraId
val photoFile = File(path)
if (activity.needsStupidWritePermissions(path)) {
if (activity.config.treeUri.isEmpty()) {
if (!activity.hasProperStoredTreeUri()) {
activity.toast(R.string.save_error_internal_storage)
activity.config.savePhotosFolder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).toString()
return ""