mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
show a clearer error toast at cancelling the editing
This commit is contained in:
parent
53667d55f2
commit
17e7fb523d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue