always initialize the Editor in crop_rotate mode
This commit is contained in:
parent
f8cf95991f
commit
51a36e5d85
1 changed files with 5 additions and 2 deletions
|
@ -177,6 +177,11 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
|||
|
||||
override fun onResourceReady(bitmap: Bitmap?, model: Any?, target: Target<Bitmap>?, dataSource: DataSource?, isFirstResource: Boolean): Boolean {
|
||||
val currentFilter = getFiltersAdapter()?.getCurrentFilter()
|
||||
if (initialBitmap == null) {
|
||||
loadCropImageView()
|
||||
bottomCropRotateClicked()
|
||||
}
|
||||
|
||||
if (initialBitmap != null && currentFilter != null && currentFilter.filter.name != getString(R.string.none)) {
|
||||
default_image_view.onGlobalLayout {
|
||||
applyFilter(currentFilter)
|
||||
|
@ -186,9 +191,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
|||
}
|
||||
|
||||
if (isCropIntent) {
|
||||
loadCropImageView()
|
||||
bottom_primary_filter.beGone()
|
||||
bottomCropRotateClicked()
|
||||
}
|
||||
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue