mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2026-02-03 00:06:46 +08:00
fix(android): improper cache path construction during image manipulation (#905)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user