mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-04-24 12:08:45 +02: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.io.*
|
||||||
import java.util.UUID
|
import java.util.UUID
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inspired by
|
* Inspired by
|
||||||
* @see androidx.camera.core.ImageSaver
|
* @see androidx.camera.core.ImageSaver
|
||||||
@ -37,7 +36,6 @@ class ImageSaver private constructor(
|
|||||||
private val onError: (ImageCaptureException) -> Unit,
|
private val onError: (ImageCaptureException) -> Unit,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private const val TEMP_FILE_PREFIX = "SimpleCamera"
|
private const val TEMP_FILE_PREFIX = "SimpleCamera"
|
||||||
private const val TEMP_FILE_SUFFIX = ".tmp"
|
private const val TEMP_FILE_SUFFIX = ".tmp"
|
||||||
@ -66,7 +64,6 @@ class ImageSaver private constructor(
|
|||||||
).saveImage()
|
).saveImage()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fun saveImage() {
|
fun saveImage() {
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
// Save the image to a temp file first. This is necessary because ExifInterface only
|
// 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 */
|
/** Type of error that occurred during save */
|
||||||
enum class SaveError {
|
enum class SaveError {
|
||||||
/** Failed to write to or close the file */
|
/** Failed to write to or close the file */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user