Allow freestyle in cropping

This commit is contained in:
Matthieu 2022-08-21 00:26:29 +02:00
parent ce4d9d7082
commit 1a2720ee74
1 changed files with 1 additions and 0 deletions

View File

@ -291,6 +291,7 @@ class PhotoEditActivity : BaseThemedWithBarActivity() {
setToolbarWidgetColor(this@PhotoEditActivity.getColorFromAttr(R.attr.colorOnSurface))
setToolbarColor(this@PhotoEditActivity.getColorFromAttr(R.attr.colorSurface))
setActiveControlsWidgetColor(this@PhotoEditActivity.getColorFromAttr(R.attr.colorPrimary))
setFreeStyleCropEnabled(true)
}
val uCrop: UCrop = UCrop.of(initialUri!!, Uri.fromFile(file)).withOptions(options)
uCrop.start(this)