|
|
@ -3038,7 +3038,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
snackbar.show();
|
|
|
|
snackbar.show();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
File dir = Helper.ensureExists(new File(context.getFilesDir(), "photo"));
|
|
|
|
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 {
|
|
|
|
try {
|
|
|
|
photoURI = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID, file);
|
|
|
|
photoURI = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID, file);
|
|
|
|
intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);
|
|
|
|
intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);
|
|
|
|