mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
toggle cropper guidelines visibility depending on the primary action
This commit is contained in:
@@ -165,9 +165,11 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
|||||||
|
|
||||||
bottom_aspect_ratio.setOnClickListener {
|
bottom_aspect_ratio.setOnClickListener {
|
||||||
currPrimaryAction = if (currPrimaryAction == PRIMARY_ASPECT_RATIO) {
|
currPrimaryAction = if (currPrimaryAction == PRIMARY_ASPECT_RATIO) {
|
||||||
|
crop_image_view.guidelines = CropImageView.Guidelines.OFF
|
||||||
bottom_aspect_ratios.beGone()
|
bottom_aspect_ratios.beGone()
|
||||||
PRIMARY_NONE
|
PRIMARY_NONE
|
||||||
} else {
|
} else {
|
||||||
|
crop_image_view.guidelines = CropImageView.Guidelines.ON
|
||||||
bottom_aspect_ratios.beVisible()
|
bottom_aspect_ratios.beVisible()
|
||||||
PRIMARY_ASPECT_RATIO
|
PRIMARY_ASPECT_RATIO
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user