From 588754d999ba72f658f9d89b630f9ad6c8b58680 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 19 Jul 2018 12:01:46 +0200 Subject: [PATCH] toggle cropper guidelines visibility depending on the primary action --- .../com/simplemobiletools/gallery/activities/EditActivity.kt | 2 ++ 1 file changed, 2 insertions(+) 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 95519903c..0d38df221 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt @@ -165,9 +165,11 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener bottom_aspect_ratio.setOnClickListener { currPrimaryAction = if (currPrimaryAction == PRIMARY_ASPECT_RATIO) { + crop_image_view.guidelines = CropImageView.Guidelines.OFF bottom_aspect_ratios.beGone() PRIMARY_NONE } else { + crop_image_view.guidelines = CropImageView.Guidelines.ON bottom_aspect_ratios.beVisible() PRIMARY_ASPECT_RATIO }