mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
adding some crashfix related to the editor
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user