mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-27 06:57:59 +01:00
adding some crashfix related to the editor
This commit is contained in:
parent
f5c32d0a82
commit
09ac5e59e9
1 changed files with 8 additions and 0 deletions
|
@ -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…
Reference in a new issue