Use unique photo filenames

This commit is contained in:
M66B 2023-01-14 17:29:20 +01:00
parent 7ceba5451d
commit 6651bc0b8e
1 changed files with 1 additions and 1 deletions

View File

@ -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);