mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-01-29 22:44:48 +01:00
do not report FileNotFoundException at PhotoProcessor
This commit is contained in:
parent
c6215b1f25
commit
8d7c2c5a23
@ -15,6 +15,7 @@ import com.simplemobiletools.camera.extensions.getOutputMediaFile
|
||||
import com.simplemobiletools.camera.extensions.getPreviewRotation
|
||||
import com.simplemobiletools.commons.extensions.*
|
||||
import java.io.File
|
||||
import java.io.FileNotFoundException
|
||||
import java.io.FileOutputStream
|
||||
import java.io.OutputStream
|
||||
|
||||
@ -101,6 +102,8 @@ class PhotoProcessor(val activity: MainActivity, val uri: Uri?, val currCameraId
|
||||
|
||||
fileExif.saveAttributes()
|
||||
return photoFile.absolutePath
|
||||
} catch (e: FileNotFoundException) {
|
||||
|
||||
} catch (e: Exception) {
|
||||
activity.showErrorToast(e)
|
||||
} finally {
|
||||
|
Loading…
x
Reference in New Issue
Block a user