From 188f03aa543002e89dd0bfbaab1188ca0463877f Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 19 Jul 2018 11:24:46 +0200 Subject: [PATCH] enable edit cropper by default, with visible grid --- .../com/simplemobiletools/gallery/activities/EditActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt index 7792fac04..95519903c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt @@ -45,7 +45,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener private lateinit var saveUri: Uri private var resizeWidth = 0 private var resizeHeight = 0 - private var currPrimaryAction = 0 + private var currPrimaryAction = PRIMARY_NONE private var isCropIntent = false private var isEditingWithThirdParty = false private var currentAspectRatio = ASPECT_RATIO_FREE @@ -101,6 +101,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener crop_image_view.apply { setOnCropImageCompleteListener(this@EditActivity) setImageUriAsync(uri) + guidelines = CropImageView.Guidelines.ON if (isCropIntent && shouldCropSquare()) { currentAspectRatio = ASPECT_RATIO_ONE_ONE @@ -110,6 +111,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener } setupBottomActions() + bottom_aspect_ratio.performClick() } override fun onResume() {