diff --git a/src/android/FilePath.java b/src/android/FilePath.java index 67ae4fe..231a838 100644 --- a/src/android/FilePath.java +++ b/src/android/FilePath.java @@ -387,12 +387,15 @@ else if ("content".equalsIgnoreCase(uri.getScheme())) { // Return the remote address if (isGooglePhotosUri(uri)) { - String contentPath = getContentFromSegments(uri.getPathSegments()); - if (contentPath != "") { - return getPath(context, Uri.parse(contentPath)); - } - else { - return null; + if (uri.toString().contains("mediakey")) { + return getDriveFilePath(uri, context); + } else { + String contentPath = getContentFromSegments(uri.getPathSegments()); + if (contentPath != "") { + return getPath(context, Uri.parse(contentPath)); + } else { + return null; + } } }