fix(android): improper cache path construction during image manipulation (#905)

This commit is contained in:
Norman Breau 2024-10-25 13:15:59 -03:00 committed by GitHub
parent feb7643bc3
commit 36bf8e7331
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {