mirror of
https://gitee.com/shuto/cordova-imagePicker.git
synced 2026-05-23 00:05:03 +08:00
Merge remote-tracking branch 'upstream/master'
# Conflicts: # plugin.xml
This commit is contained in:
@@ -626,7 +626,7 @@ public class MultiImageChooserActivity extends Activity implements OnItemClickLi
|
|||||||
int index = fileName.lastIndexOf('.');
|
int index = fileName.lastIndexOf('.');
|
||||||
String name = fileName.substring(0, index);
|
String name = fileName.substring(0, index);
|
||||||
String ext = fileName.substring(index);
|
String ext = fileName.substring(index);
|
||||||
File file = File.createTempFile(name, ext);
|
File file = File.createTempFile("tmp_" + name, ext);
|
||||||
OutputStream outStream = new FileOutputStream(file);
|
OutputStream outStream = new FileOutputStream(file);
|
||||||
if (ext.compareToIgnoreCase(".png") == 0) {
|
if (ext.compareToIgnoreCase(".png") == 0) {
|
||||||
bmp.compress(Bitmap.CompressFormat.PNG, quality, outStream);
|
bmp.compress(Bitmap.CompressFormat.PNG, quality, outStream);
|
||||||
|
|||||||
Reference in New Issue
Block a user