show an error message if editing fails

This commit is contained in:
tibbi 2019-12-24 19:05:19 +01:00
parent fd24357838
commit 04abffddb7

View file

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