Allow freestyle in cropping
This commit is contained in:
parent
ce4d9d7082
commit
1a2720ee74
|
@ -291,6 +291,7 @@ class PhotoEditActivity : BaseThemedWithBarActivity() {
|
||||||
setToolbarWidgetColor(this@PhotoEditActivity.getColorFromAttr(R.attr.colorOnSurface))
|
setToolbarWidgetColor(this@PhotoEditActivity.getColorFromAttr(R.attr.colorOnSurface))
|
||||||
setToolbarColor(this@PhotoEditActivity.getColorFromAttr(R.attr.colorSurface))
|
setToolbarColor(this@PhotoEditActivity.getColorFromAttr(R.attr.colorSurface))
|
||||||
setActiveControlsWidgetColor(this@PhotoEditActivity.getColorFromAttr(R.attr.colorPrimary))
|
setActiveControlsWidgetColor(this@PhotoEditActivity.getColorFromAttr(R.attr.colorPrimary))
|
||||||
|
setFreeStyleCropEnabled(true)
|
||||||
}
|
}
|
||||||
val uCrop: UCrop = UCrop.of(initialUri!!, Uri.fromFile(file)).withOptions(options)
|
val uCrop: UCrop = UCrop.of(initialUri!!, Uri.fromFile(file)).withOptions(options)
|
||||||
uCrop.start(this)
|
uCrop.start(this)
|
||||||
|
|
Loading…
Reference in New Issue