mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
enable edit cropper by default, with visible grid
This commit is contained in:
parent
d77b2e1890
commit
188f03aa54
1 changed files with 3 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue