mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 04:20:38 +01:00
catch out of memory error at editor activity too
This commit is contained in:
parent
00dc0c16d3
commit
a4ca22f419
@ -149,6 +149,8 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
||||
Log.e(TAG, "Crop compressing failed $path $e")
|
||||
toast(R.string.image_editing_failed)
|
||||
finish()
|
||||
} catch (e: OutOfMemoryError) {
|
||||
toast(R.string.unknown_error_occurred)
|
||||
} finally {
|
||||
try {
|
||||
out?.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user