get CordovaCamera to work again
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/ec58f56e Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/ec58f56e Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/ec58f56e Branch: refs/heads/release0.8.0 Commit: ec58f56e633ef8413c97c8218242f28d5dca70f1 Parents: a2586ab Author: Alex Harui <[email protected]> Authored: Wed May 31 16:35:54 2017 -0700 Committer: Alex Harui <[email protected]> Committed: Wed May 31 16:35:54 2017 -0700 ---------------------------------------------------------------------- .../flexjs/CordovaCameraExample/src/main/flex/MyInitialView.mxml | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ec58f56e/examples/flexjs/CordovaCameraExample/src/main/flex/MyInitialView.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/CordovaCameraExample/src/main/flex/MyInitialView.mxml b/examples/flexjs/CordovaCameraExample/src/main/flex/MyInitialView.mxml index 2e79292..94eaea6 100644 --- a/examples/flexjs/CordovaCameraExample/src/main/flex/MyInitialView.mxml +++ b/examples/flexjs/CordovaCameraExample/src/main/flex/MyInitialView.mxml @@ -59,6 +59,9 @@ limitations under the License. private function onFromPhotoLibrary() : void { + if (cam == null) { + cam = new Camera(); + } cam.getPhotoFromLibrary(libSuccess,failure); }
