Merge pull request #8325 from networkException/free-style-cropping

Enable free style cropping for camera and gallery images
This commit is contained in:
Benoit Marty 2023-05-05 10:35:51 +02:00 committed by GitHub
commit b5f1ecf9e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

1
changelog.d/8325.feature Normal file
View file

@ -0,0 +1 @@
Enable free style cropping for camera and gallery images

View file

@ -39,8 +39,7 @@ fun createUCropWithDefaultSettings(
/* tabAspectRatio = */ UCropActivity.SCALE
)
setToolbarTitle(toolbarTitle)
// Disable freestyle crop, usability was not easy
// setFreeStyleCropEnabled(true)
setFreeStyleCropEnabled(true)
// Color used for toolbar icon and text
setToolbarColor(colorProvider.getColorFromAttribute(android.R.attr.colorBackground))
setToolbarWidgetColor(colorProvider.getColorFromAttribute(R.attr.vctr_content_primary))