mirror of
https://github.com/FossifyOrg/Camera.git
synced 2026-06-13 10:42:09 -04:00
couple more safety checks
This commit is contained in:
@@ -56,11 +56,11 @@ public class Utils {
|
||||
}
|
||||
}
|
||||
|
||||
final String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.getDefault()).format(new Date());
|
||||
final String timestamp = new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.getDefault()).format(new Date());
|
||||
if (isPhoto) {
|
||||
return mediaStorageDir.getPath() + File.separator + "IMG_" + timeStamp + ".jpg";
|
||||
return mediaStorageDir.getPath() + File.separator + "IMG_" + timestamp + ".jpg";
|
||||
} else {
|
||||
return mediaStorageDir.getPath() + File.separator + "VID_" + timeStamp + ".mp4";
|
||||
return mediaStorageDir.getPath() + File.separator + "VID_" + timestamp + ".mp4";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user