From 4b8820d0ec96f899d1e948d3a74046f53af373b8 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Wed, 15 Apr 2020 19:29:44 +0200 Subject: [PATCH] fix(android): avoid camera crash on photo edit cancel (#2776) --- .../capacitor/src/main/java/com/getcapacitor/plugin/Camera.java | 1 + 1 file changed, 1 insertion(+) diff --git a/android/capacitor/src/main/java/com/getcapacitor/plugin/Camera.java b/android/capacitor/src/main/java/com/getcapacitor/plugin/Camera.java index 4c46d73601..ad33685036 100644 --- a/android/capacitor/src/main/java/com/getcapacitor/plugin/Camera.java +++ b/android/capacitor/src/main/java/com/getcapacitor/plugin/Camera.java @@ -485,6 +485,7 @@ protected void handleOnActivityResult(int requestCode, int resultCode, Intent da isEdited = true; processPickedImage(savedCall, data); } else if (resultCode == Activity.RESULT_CANCELED && imageFileSavePath != null) { + imageEditedFileSavePath = null; isEdited = true; processCameraImage(savedCall); }