Skip to content

Commit

Permalink
fix(android): don't return NO_CAMERA_ERROR if any camera is present (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Mar 11, 2020
1 parent d222226 commit 4f6ca98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void onSelect(int index) {
}

private void showCamera(final PluginCall call) {
if (!getActivity().getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)) {
if (!getActivity().getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY)) {
call.error(NO_CAMERA_ERROR);
return;
}
Expand Down

0 comments on commit 4f6ca98

Please sign in to comment.