mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-02-22 13:12:50 +08:00
Update empty filename issue
This commit is contained in:
parent
45496213b3
commit
bf1d652c57
@ -335,7 +335,9 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
|
|||||||
*/
|
*/
|
||||||
private File createCaptureFile(int encodingType, String fileName) {
|
private File createCaptureFile(int encodingType, String fileName) {
|
||||||
if (fileName.isEmpty()) {
|
if (fileName.isEmpty()) {
|
||||||
fileName = ".Pic";
|
//creating timestamps for empty filename to differentiate between multiple files selected via gallery
|
||||||
|
String timeStamp = new SimpleDateFormat(TIME_FORMAT).format(new Date());
|
||||||
|
fileName = timeStamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (encodingType == JPEG) {
|
if (encodingType == JPEG) {
|
||||||
|
Loading…
Reference in New Issue
Block a user