Refactoring

This commit is contained in:
M66B
2023-11-20 08:51:22 +01:00
parent cef79942f4
commit b94e461e6c
8 changed files with 24 additions and 11 deletions

View File

@@ -3574,7 +3574,7 @@ public class FragmentCompose extends FragmentBase {
File dir = Helper.ensureExists(new File(context.getFilesDir(), "photo"));
File file = new File(dir, working + "_" + new Date().getTime() + ".jpg");
try {
photoURI = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID, file);
photoURI = FileProviderEx.getUri(context, BuildConfig.APPLICATION_ID, file);
intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);
startActivityForResult(intent, REQUEST_TAKE_PHOTO);
} catch (Throwable ex) {