From 91bb5b70ded83e5dfd4efe6259881292994e231f Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 23 Jul 2018 12:36:08 +0200 Subject: [PATCH] automatically switch to crop_rotate primary action at Crop intent --- .../simplemobiletools/gallery/activities/EditActivity.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt index 3675eb347..f2ae48e70 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt @@ -179,6 +179,12 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener initialBitmap = bitmap } + if (isCropIntent) { + loadCropImageView() + bottom_primary_filter.beGone() + bottom_primary_crop_rotate.performClick() + } + return false } }).into(default_image_view)