use proper error strings at out of memory toasts

This commit is contained in:
tibbi 2017-02-13 23:34:00 +01:00
parent a4ca22f419
commit d4bd291461
2 changed files with 2 additions and 2 deletions

View file

@ -150,7 +150,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
toast(R.string.image_editing_failed) toast(R.string.image_editing_failed)
finish() finish()
} catch (e: OutOfMemoryError) { } catch (e: OutOfMemoryError) {
toast(R.string.unknown_error_occurred) toast(R.string.out_of_memory_error)
} finally { } finally {
try { try {
out?.close() out?.close()

View file

@ -188,7 +188,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
fOut.flush() fOut.flush()
toast(R.string.file_saved) toast(R.string.file_saved)
} catch (e: OutOfMemoryError) { } catch (e: OutOfMemoryError) {
toast(R.string.unknown_error_occurred) toast(R.string.out_of_memory_error)
} catch (e: Exception) { } catch (e: Exception) {
toast(R.string.unknown_error_occurred) toast(R.string.unknown_error_occurred)
} finally { } finally {