show an error message if editing fails
This commit is contained in:
parent
fd24357838
commit
04abffddb7
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue