diff --git a/src/android/PhotoLibraryService.java b/src/android/PhotoLibraryService.java index b9e24daf..cbb438a2 100644 --- a/src/android/PhotoLibraryService.java +++ b/src/android/PhotoLibraryService.java @@ -201,18 +201,8 @@ public void saveImage(final Context context, final CordovaInterface cordova, fin saveMedia(context, cordova, url, album, imageMimeToExtension, new FilePathRunnable() { @Override public void run(String filePath) { - try { - // Find the saved image in the library and return it as libraryItem - String whereClause = MediaStore.MediaColumns.DATA + " = \"" + filePath + "\""; - queryLibrary(context, whereClause, new ChunkResultRunnable() { - @Override - public void run(ArrayList chunk, int chunkNum, boolean isLastChunk) { - completion.run(chunk.size() == 1 ? chunk.get(0) : null); - } - }); - } catch (Exception e) { - completion.run(null); - } + JSONObject item = new JSONObject(); + completion.run(item); } });