mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-02-22 04:52:51 +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) {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user