Skip to content

Commit

Permalink
fix(ios): return error if Cancel is selected from Camera.getPhoto() p…
Browse files Browse the repository at this point in the history
…rompt (#2550)
  • Loading branch information
christhompson05 authored Mar 18, 2020
1 parent 78a28da commit a015f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Capacitor/Capacitor/Plugins/Camera.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public class CAPCameraPlugin : CAPPlugin, UIImagePickerControllerDelegate, UINav
}))

alert.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: { (action: UIAlertAction) in
alert.dismiss(animated: true, completion: nil)
self.call?.error("User cancelled photos app")
}))

self.setCenteredPopover(alert)
Expand Down

0 comments on commit a015f8f

Please sign in to comment.