Skip to content

Commit 335a5fc

Browse files
committed
fix(android): improper cache path construction during image manipulation (apache#905)
1 parent cb8771e commit 335a5fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/android/CameraLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ private Bitmap getScaledAndRotatedBitmap(String imageUrl) throws IOException {
10021002
// Generate a temporary file
10031003
String timeStamp = new SimpleDateFormat(TIME_FORMAT).format(new Date());
10041004
String fileName = "IMG_" + timeStamp + (getExtensionForEncodingType());
1005-
localFile = new File(getTempDirectoryPath() + fileName);
1005+
localFile = new File(getTempDirectoryPath(), fileName);
10061006
galleryUri = Uri.fromFile(localFile);
10071007
writeUncompressedImage(fileStream, galleryUri);
10081008
try {

0 commit comments

Comments
 (0)