show a clearer error toast at cancelling the editing

This commit is contained in:
tibbi 2020-02-23 11:44:53 +01:00
parent 53667d55f2
commit 17e7fb523d

View file

@ -119,7 +119,7 @@ class NewEditActivity : SimpleActivity() {
} }
if (resultCode != Activity.RESULT_OK || sourceImageUri == null || sourceImageUri.toString().isEmpty() || cacheImagePathFromEditor.isEmpty() || sourceImageUri.toString() == cacheImagePathFromEditor) { if (resultCode != Activity.RESULT_OK || sourceImageUri == null || sourceImageUri.toString().isEmpty() || cacheImagePathFromEditor.isEmpty() || sourceImageUri.toString() == cacheImagePathFromEditor) {
toast(R.string.image_editing_failed) toast(R.string.image_editing_cancelled)
finish() finish()
} else { } else {
// the image is stored at the internal app storage first, for example /data/user/0/com.simplemobiletools.gallery.pro/cache/editor/IMG_20191207_183023.jpg // the image is stored at the internal app storage first, for example /data/user/0/com.simplemobiletools.gallery.pro/cache/editor/IMG_20191207_183023.jpg