mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-18 19:22:51 +08:00
fix(android): improper cache path construction during image manipulation (#905)
This commit is contained in:
parent
feb7643bc3
commit
36bf8e7331
@ -1011,7 +1011,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
|
|||||||
// Generate a temporary file
|
// Generate a temporary file
|
||||||
String timeStamp = new SimpleDateFormat(TIME_FORMAT).format(new Date());
|
String timeStamp = new SimpleDateFormat(TIME_FORMAT).format(new Date());
|
||||||
String fileName = "IMG_" + timeStamp + (getExtensionForEncodingType());
|
String fileName = "IMG_" + timeStamp + (getExtensionForEncodingType());
|
||||||
localFile = new File(getTempDirectoryPath() + fileName);
|
localFile = new File(getTempDirectoryPath(), fileName);
|
||||||
galleryUri = Uri.fromFile(localFile);
|
galleryUri = Uri.fromFile(localFile);
|
||||||
writeUncompressedImage(fileStream, galleryUri);
|
writeUncompressedImage(fileStream, galleryUri);
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user