breautek commented on a change in pull request #669:
URL: 
https://github.com/apache/cordova-plugin-camera/pull/669#discussion_r504985709



##########
File path: src/android/CameraLauncher.java
##########
@@ -494,16 +494,18 @@ private void processResultFromCamera(int destType, Intent 
intent) throws IOExcep
         // in the gallery and the modified image is saved in the temporary
         // directory
         if (this.saveToPhotoAlbum) {
-            galleryUri = Uri.fromFile(new File(getPicturesPath()));
+            GalleryPathVO galleryPathVO = getPicturesPath();
+            galleryUri = Uri.fromFile(new 
File(galleryPathVO.getGalleryPath()));
 
             if (this.allowEdit && this.croppedUri != null) {
                 writeUncompressedImage(croppedUri, galleryUri);
             } else {
-                Uri imageUri = this.imageUri;
-                writeUncompressedImage(imageUri, galleryUri);
+                if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) { // 
Between LOLLIPOP_MR1 and P

Review comment:
       > But is it really necessary to be able to compile with the sdk version 
equal to 22?
   
   My personal opinion is no.... but I think that's what our min requirement is 
going to be. I'm about to write a new thread in the dev mail to see if the 
community can come to a consensus and so that we can document what Cordova 
supports for enterprise users. I'm assuming the consensus will be "whatever 
what the min sdk version is", which is currently 22.
   
   Obviously this only applies to people who aren't publishing to the google 
play store.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to