mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-06 18:57:26 +01:00
In debug, fix crash that occurs when using the camera to post an image. (#1308)
This commit is contained in:
parent
a9fc1dacaa
commit
ae1e59327f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user