aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml
diff options
context:
space:
mode:
authorcmp <camporter1@gmail.com>2023-01-24 15:51:56 +0000
committerGitHub <noreply@github.com>2023-01-24 15:51:56 +0000
commitae1e59327fbdd333253fddae5f41cfade0dd6d87 (patch)
tree65cf0cbf50e5839e6acc9fc3f305d9fe11131c56 /app/src/main/java/ml
parenta9fc1dacaabfbca89d3a7bed5c49a7f264850d94 (diff)
downloadinfinity-for-reddit-ae1e59327fbdd333253fddae5f41cfade0dd6d87.tar
infinity-for-reddit-ae1e59327fbdd333253fddae5f41cfade0dd6d87.tar.gz
infinity-for-reddit-ae1e59327fbdd333253fddae5f41cfade0dd6d87.tar.bz2
infinity-for-reddit-ae1e59327fbdd333253fddae5f41cfade0dd6d87.tar.lz
infinity-for-reddit-ae1e59327fbdd333253fddae5f41cfade0dd6d87.tar.xz
infinity-for-reddit-ae1e59327fbdd333253fddae5f41cfade0dd6d87.tar.zst
infinity-for-reddit-ae1e59327fbdd333253fddae5f41cfade0dd6d87.zip
In debug, fix crash that occurs when using the camera to post an image. (#1308)
Diffstat (limited to 'app/src/main/java/ml')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostImageActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostImageActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostImageActivity.java
index 739d6a66..3c76b394 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostImageActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostImageActivity.java
@@ -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);