mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
use proper error strings at out of memory toasts
This commit is contained in:
parent
a4ca22f419
commit
d4bd291461
2 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
|||
toast(R.string.image_editing_failed)
|
||||
finish()
|
||||
} catch (e: OutOfMemoryError) {
|
||||
toast(R.string.unknown_error_occurred)
|
||||
toast(R.string.out_of_memory_error)
|
||||
} finally {
|
||||
try {
|
||||
out?.close()
|
||||
|
|
|
@ -188,7 +188,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||
fOut.flush()
|
||||
toast(R.string.file_saved)
|
||||
} catch (e: OutOfMemoryError) {
|
||||
toast(R.string.unknown_error_occurred)
|
||||
toast(R.string.out_of_memory_error)
|
||||
} catch (e: Exception) {
|
||||
toast(R.string.unknown_error_occurred)
|
||||
} finally {
|
||||
|
|
Loading…
Reference in a new issue