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…
Reference in New Issue