catch out of memory error at editor activity too

This commit is contained in:
tibbi 2017-02-13 23:31:24 +01:00
parent 00dc0c16d3
commit a4ca22f419
1 changed files with 2 additions and 0 deletions

View File

@ -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()