mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-01-31 15:34:48 +01:00
formatting: remove duplicate empty lines in ImageSaver
This commit is contained in:
parent
cc3c2108cf
commit
89bf37d535
@ -21,7 +21,6 @@ import com.simplemobiletools.commons.helpers.isQPlus
|
||||
import java.io.*
|
||||
import java.util.UUID
|
||||
|
||||
|
||||
/**
|
||||
* Inspired by
|
||||
* @see androidx.camera.core.ImageSaver
|
||||
@ -37,7 +36,6 @@ class ImageSaver private constructor(
|
||||
private val onError: (ImageCaptureException) -> Unit,
|
||||
) {
|
||||
|
||||
|
||||
companion object {
|
||||
private const val TEMP_FILE_PREFIX = "SimpleCamera"
|
||||
private const val TEMP_FILE_SUFFIX = ".tmp"
|
||||
@ -66,7 +64,6 @@ class ImageSaver private constructor(
|
||||
).saveImage()
|
||||
}
|
||||
|
||||
|
||||
fun saveImage() {
|
||||
ensureBackgroundThread {
|
||||
// Save the image to a temp file first. This is necessary because ExifInterface only
|
||||
@ -289,7 +286,6 @@ class ImageSaver private constructor(
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** Type of error that occurred during save */
|
||||
enum class SaveError {
|
||||
/** Failed to write to or close the file */
|
||||
|
Loading…
x
Reference in New Issue
Block a user