Skip to content

Commit

Permalink
Check to see if camera is available.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike James committed Jun 15, 2016
1 parent 7bcf614 commit 40a4a59
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ async void BeerSelected(Beer beer)

void PictureImport()
{
if (!UIImagePickerController.IsSourceTypeAvailable(UIImagePickerControllerSourceType.Camera))
return;

var imagePicker = new UIImagePickerController();
imagePicker.SourceType = UIImagePickerControllerSourceType.Camera;
PresentViewController(imagePicker, true, null);
Expand Down

0 comments on commit 40a4a59

Please sign in to comment.