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 lateinit var saveUri: Uri
|
||||||
private var resizeWidth = 0
|
private var resizeWidth = 0
|
||||||
private var resizeHeight = 0
|
private var resizeHeight = 0
|
||||||
private var currPrimaryAction = 0
|
private var currPrimaryAction = PRIMARY_NONE
|
||||||
private var isCropIntent = false
|
private var isCropIntent = false
|
||||||
private var isEditingWithThirdParty = false
|
private var isEditingWithThirdParty = false
|
||||||
private var currentAspectRatio = ASPECT_RATIO_FREE
|
private var currentAspectRatio = ASPECT_RATIO_FREE
|
||||||
|
@ -101,6 +101,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
||||||
crop_image_view.apply {
|
crop_image_view.apply {
|
||||||
setOnCropImageCompleteListener(this@EditActivity)
|
setOnCropImageCompleteListener(this@EditActivity)
|
||||||
setImageUriAsync(uri)
|
setImageUriAsync(uri)
|
||||||
|
guidelines = CropImageView.Guidelines.ON
|
||||||
|
|
||||||
if (isCropIntent && shouldCropSquare()) {
|
if (isCropIntent && shouldCropSquare()) {
|
||||||
currentAspectRatio = ASPECT_RATIO_ONE_ONE
|
currentAspectRatio = ASPECT_RATIO_ONE_ONE
|
||||||
|
@ -110,6 +111,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
||||||
}
|
}
|
||||||
|
|
||||||
setupBottomActions()
|
setupBottomActions()
|
||||||
|
bottom_aspect_ratio.performClick()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
|
|
Loading…
Reference in a new issue