mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-09 10:33:41 +02:00
Use unique photo filenames
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user