Skip to content

Commit

Permalink
Merge pull request capacitor-community#123 from ryaa/fix-remove-read-…
Browse files Browse the repository at this point in the history
…write-external-storage-permission
  • Loading branch information
arielhernandezmusa authored Apr 20, 2021
2 parents 8ec4752 + 04af318 commit 537c624
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@

@NativePlugin(
permissions = {
Manifest.permission.CAMERA,
Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.READ_EXTERNAL_STORAGE
Manifest.permission.CAMERA
},
requestCodes = {
CameraPreview.REQUEST_CAMERA_PERMISSION
Expand Down Expand Up @@ -60,9 +58,7 @@ public void start(PluginCall call) {
startCamera(call);
} else {
pluginRequestPermissions(new String[]{
Manifest.permission.CAMERA,
Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.READ_EXTERNAL_STORAGE
Manifest.permission.CAMERA
}, REQUEST_CAMERA_PERMISSION);
}
}
Expand Down

0 comments on commit 537c624

Please sign in to comment.