cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nantunes <>
Subject [GitHub] cordova-plugin-camera pull request: Try to use realpath filename i...
Date Wed, 14 Oct 2015 15:59:29 GMT
Github user nantunes commented on a diff in the pull request:
    --- Diff: src/android/ ---
    @@ -498,15 +498,19 @@ private void refreshGallery(Uri contentUri)
     private String ouputModifiedBitmap(Bitmap bitmap, Uri uri) throws IOException {
    +        // Some content: URIs do not map to file paths (e.g. picasa).
    +        String realPath = FileHelper.getRealPath(uri, this.cordova);
    +        // Get filename from uri
    +        String fileName = realPath != null ? realPath.substring(realPath.lastIndexOf('/')
+ 1) : "modified.jpg";
    --- End diff --
    Just kept the same behaviour as before (see bellow old line 502). It would be nice to
respect the encoding, but outside the scope of this patch.

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message