From 09ac5e59e948b8e92edb9e88a7bfcf34f13babd6 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 8 Jan 2019 13:42:57 +0100 Subject: [PATCH] adding some crashfix related to the editor --- .../gallery/pro/activities/EditActivity.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt index 8406b8a83..f665296be 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt @@ -137,6 +137,14 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener setupBottomActions() if (config.lastEditorCropAspectRatio == ASPECT_RATIO_OTHER) { + if (config.lastEditorCropOtherAspectRatioX == 0) { + config.lastEditorCropOtherAspectRatioX = 1 + } + + if (config.lastEditorCropOtherAspectRatioY == 0) { + config.lastEditorCropOtherAspectRatioY = 1 + } + lastOtherAspectRatio = Pair(config.lastEditorCropOtherAspectRatioX, config.lastEditorCropOtherAspectRatioY) } updateAspectRatio(config.lastEditorCropAspectRatio)