mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
remove an error showing at saving photo
This commit is contained in:
@ -96,17 +96,14 @@ class PhotoProcessor(val activity: MainActivity, val uri: Uri?, val currCameraId
|
|||||||
if (path.startsWith(activity.internalStoragePath)) {
|
if (path.startsWith(activity.internalStoragePath)) {
|
||||||
exifOrientation = getExifOrientation(totalRotation)
|
exifOrientation = getExifOrientation(totalRotation)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (activity.config.savePhotoMetadata)
|
if (activity.config.savePhotoMetadata)
|
||||||
tempExif.copyTo(fileExif)
|
tempExif.copyTo(fileExif)
|
||||||
|
|
||||||
fileExif.setAttribute(ExifInterface.TAG_ORIENTATION, exifOrientation)
|
fileExif.setAttribute(ExifInterface.TAG_ORIENTATION, exifOrientation)
|
||||||
|
|
||||||
fileExif.saveAttributes()
|
fileExif.saveAttributes()
|
||||||
return photoFile.absolutePath
|
return photoFile.absolutePath
|
||||||
} catch (e: FileNotFoundException) {
|
} catch (e: FileNotFoundException) {
|
||||||
|
|
||||||
} catch (e: Exception) {
|
|
||||||
activity.showErrorToast(e)
|
|
||||||
} finally {
|
} finally {
|
||||||
fos?.close()
|
fos?.close()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user