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)
|
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()
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue