From 2554193870e0c08730319ff4317706edb836cdd7 Mon Sep 17 00:00:00 2001 From: Apostolof Date: Sat, 1 Sep 2018 20:17:36 +0300 Subject: [PATCH] Merge fix --- .../java/gr/thmmy/mthmmy/activities/upload/UploadActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/upload/UploadActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/upload/UploadActivity.java index cb6f12cc..ce93b6b1 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/upload/UploadActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/upload/UploadActivity.java @@ -222,7 +222,7 @@ public class UploadActivity extends BaseActivity { takePhotoButton.setOnClickListener(v -> { Intent takePhotoIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); takePhotoIntent.putExtra("return-data", true); - takePhotoIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(UploadsHelper.getTempFile(this))); + takePhotoIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(UploadsHelper.getCacheFile(this))); Intent targetedIntent = new Intent(takePhotoIntent); List resInfo = this.getPackageManager().queryIntentActivities(takePhotoIntent, 0);