mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-18 13:00:36 +01:00
adding some crashfix related to the editor
This commit is contained in:
parent
f5c32d0a82
commit
09ac5e59e9
@ -137,6 +137,14 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
|||||||
setupBottomActions()
|
setupBottomActions()
|
||||||
|
|
||||||
if (config.lastEditorCropAspectRatio == ASPECT_RATIO_OTHER) {
|
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)
|
lastOtherAspectRatio = Pair(config.lastEditorCropOtherAspectRatioX, config.lastEditorCropOtherAspectRatioY)
|
||||||
}
|
}
|
||||||
updateAspectRatio(config.lastEditorCropAspectRatio)
|
updateAspectRatio(config.lastEditorCropAspectRatio)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user