In debug, fix crash that occurs when using the camera to post an image. (#1308)

This commit is contained in:
cmp 2023-01-24 09:51:56 -06:00 committed by GitHub
parent a9fc1dacaa
commit ae1e59327f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -374,7 +374,7 @@ public class PostImageActivity extends BaseActivity implements FlairBottomSheetF
captureFab.setOnClickListener(view -> {
Intent pictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
try {
imageUri = FileProvider.getUriForFile(this, "ml.docilealligator.infinityforreddit.provider",
imageUri = FileProvider.getUriForFile(this, getPackageName() + ".provider",
File.createTempFile("temp_img", ".jpg", getExternalFilesDir(Environment.DIRECTORY_PICTURES)));
pictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);
startActivityForResult(pictureIntent, CAPTURE_IMAGE_REQUEST_CODE);