From c4b977517bdccb6725b2e0991129f282ac311a7b Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 13 Jan 2018 09:29:08 +0100 Subject: [PATCH] remove an error showing at saving photo --- .../com/simplemobiletools/camera/helpers/PhotoProcessor.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/helpers/PhotoProcessor.kt b/app/src/main/kotlin/com/simplemobiletools/camera/helpers/PhotoProcessor.kt index fbe73dd2..04a12f6c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/helpers/PhotoProcessor.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/helpers/PhotoProcessor.kt @@ -96,17 +96,14 @@ class PhotoProcessor(val activity: MainActivity, val uri: Uri?, val currCameraId if (path.startsWith(activity.internalStoragePath)) { exifOrientation = getExifOrientation(totalRotation) } + if (activity.config.savePhotoMetadata) tempExif.copyTo(fileExif) fileExif.setAttribute(ExifInterface.TAG_ORIENTATION, exifOrientation) - fileExif.saveAttributes() return photoFile.absolutePath } catch (e: FileNotFoundException) { - - } catch (e: Exception) { - activity.showErrorToast(e) } finally { fos?.close() }