INNER CODE UNIT · Kotlin
y
SimpleMobileTools/Simple-Gallery · app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt:305
y = (height - bitmap.height) / 2f
requestLayout()
}
}
} catch (e: Exception) {
showErrorToast(e)
}
}
@TargetApi(Build.VERSION_CODES.N)
private fun saveImage() {
setOldExif()
if (binding.cropImageView.isVisible()) {
binding.cropImageView.croppedImageAsync()
} else if (binding.editorDrawCanvas.isVisible()) {
val bitmap = binding.editorDrawCanvas.getBitmap()
if (saveUri.scheme == "file") {