Skip to content

Commit

Permalink
CB-14260: (android) back to captureAudio with READ_EXTERNAL_STORAGE p…
Browse files Browse the repository at this point in the history
…ermission
  • Loading branch information
mcelotti committed Sep 21, 2018
1 parent 3157ddc commit b2edbd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/android/Capture.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ private JSONObject getAudioVideoData(String filePath, JSONObject obj, boolean vi
* Sets up an intent to capture audio. Result handled by onActivityResult()
*/
private void captureAudio(Request req) {
if (!PermissionHelper.hasPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
PermissionHelper.requestPermission(this, req.requestCode, Manifest.permission.WRITE_EXTERNAL_STORAGE);
if (!PermissionHelper.hasPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE)) {
PermissionHelper.requestPermission(this, req.requestCode, Manifest.permission.READ_EXTERNAL_STORAGE);
} else {
Intent intent = new Intent(android.provider.MediaStore.Audio.Media.RECORD_SOUND_ACTION);

Expand Down

0 comments on commit b2edbd7

Please sign in to comment.