From d4bd291461e789023f15e1c82015cbe830619ccc Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 13 Feb 2017 23:34:00 +0100 Subject: [PATCH] use proper error strings at out of memory toasts --- .../com/simplemobiletools/gallery/activities/EditActivity.kt | 2 +- .../simplemobiletools/gallery/activities/ViewPagerActivity.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt index 1f23b9417..16432c213 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt @@ -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() diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index c038662bc..676acef0b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -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 {