From 36bf8e7331e2bbdc7c9c72bb4c7967be415d373c Mon Sep 17 00:00:00 2001 From: Norman Breau Date: Fri, 25 Oct 2024 13:15:59 -0300 Subject: [PATCH] fix(android): improper cache path construction during image manipulation (#905) --- src/android/CameraLauncher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java index b716dc6..00fa751 100644 --- a/src/android/CameraLauncher.java +++ b/src/android/CameraLauncher.java @@ -1011,7 +1011,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect // Generate a temporary file String timeStamp = new SimpleDateFormat(TIME_FORMAT).format(new Date()); String fileName = "IMG_" + timeStamp + (getExtensionForEncodingType()); - localFile = new File(getTempDirectoryPath() + fileName); + localFile = new File(getTempDirectoryPath(), fileName); galleryUri = Uri.fromFile(localFile); writeUncompressedImage(fileStream, galleryUri); try {