Update RNCWebViewModule.java (#509)

In Devices moto e5 play and Samsung Galaxy Note 9 Video Capture via camera return data as null.
This commit is contained in:
MAHAVIR VATALIYA 2019-08-29 20:16:42 +05:30 committed by Thibault Malbranche
parent 1ea05d3115
commit 39e5373d3e
1 changed files with 2 additions and 2 deletions

View File

@ -244,8 +244,8 @@ public class RNCWebViewModule extends ReactContextBaseJavaModule implements Acti
Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
// @todo from experience, for Videos we get the data onActivityResult
// so there's no need to store the Uri
Uri outputVideoUri = getOutputUri(MediaStore.ACTION_VIDEO_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, outputVideoUri);
outputFileUri = getOutputUri(MediaStore.ACTION_VIDEO_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);
return intent;
}