Skip to content

Commit

Permalink
Merge pull request #95 from hydrogennz/patch-1
Browse files Browse the repository at this point in the history
Add compulsory prefix "tmp_" to temporary filename
  • Loading branch information
DMcNamara committed Oct 19, 2015
2 parents 8187630 + e188210 commit 501a0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/Library/src/MultiImageChooserActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ private File storeImage(Bitmap bmp, String fileName) throws IOException {
int index = fileName.lastIndexOf('.');
String name = fileName.substring(0, index);
String ext = fileName.substring(index);
File file = File.createTempFile(name, ext);
File file = File.createTempFile("tmp_" + name, ext);
OutputStream outStream = new FileOutputStream(file);
if (ext.compareToIgnoreCase(".png") == 0) {
bmp.compress(Bitmap.CompressFormat.PNG, quality, outStream);
Expand Down

0 comments on commit 501a0a1

Please sign in to comment.