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")
|
Log.e(TAG, "Crop compressing failed $path $e")
|
||||||
toast(R.string.image_editing_failed)
|
toast(R.string.image_editing_failed)
|
||||||
finish()
|
finish()
|
||||||
|
} catch (e: OutOfMemoryError) {
|
||||||
|
toast(R.string.unknown_error_occurred)
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
out?.close()
|
out?.close()
|
||||||
|
|
Loading…
Reference in New Issue