mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 21:24:34 +00:00
Use unique photo filenames
This commit is contained in:
parent
7ceba5451d
commit
6651bc0b8e
1 changed files with 1 additions and 1 deletions
|
@ -3038,7 +3038,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
snackbar.show();
|
||||
} else {
|
||||
File dir = Helper.ensureExists(new File(context.getFilesDir(), "photo"));
|
||||
File file = new File(dir, working + ".jpg");
|
||||
File file = new File(dir, working + "_" + new Date().getTime() + ".jpg");
|
||||
try {
|
||||
photoURI = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID, file);
|
||||
intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);
|
||||
|
|
Loading…
Reference in a new issue