Browse Source

Merge fix

pull/50/head
Apostolos Fanakis 6 years ago
parent
commit
2554193870
  1. 2
      app/src/main/java/gr/thmmy/mthmmy/activities/upload/UploadActivity.java

2
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<ResolveInfo> resInfo = this.getPackageManager().queryIntentActivities(takePhotoIntent, 0);

Loading…
Cancel
Save