Github user agrieve commented on a diff in the pull request:
https://github.com/apache/cordova-plugin-camera/pull/83#discussion_r28881896
--- Diff: src/android/CameraLauncher.java ---
@@ -163,7 +167,15 @@ else if ((srcType == PHOTOLIBRARY) || (srcType ==
SAVEDPHOTOALBUM)) {
PluginResult r = new
PluginResult(PluginResult.Status.NO_RESULT);
r.setKeepCallback(true);
callbackContext.sendPluginResult(r);
-
+
+ return true;
+ } else if (action.equals("checkForSavedResult")) {
+ this.imageUri = Uri.fromFile(createCaptureFile(JPEG));
+ if (savedRequestCode > 0) {
+ onActivityResult(savedRequestCode, savedResultCode,
savedIntent);
+ } else {
+ callbackContext.success("no-result");
--- End diff --
Would be much nicer if returned result was false when coerced to a boolean
(so that they can do if (result)). So maybe return empty string or null.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]