PieterVanPoyer commented on a change in pull request #669:
URL:
https://github.com/apache/cordova-plugin-camera/pull/669#discussion_r504806816
##########
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:
**Changing the defaultTargetSdkVersion to 22 keeps working with the
code.**
Only when it is necessary to change the defaultCompileSdkVersion below 28,
there is a problem.
When I change to code to the numerical ``28`` I can go to
defaultCompileSdkVersion 26.
With the defaultCompileSdkVersion set to 25. I've got resource linking
errors.
Just to be sure: Does Cordova require the Cameraplugin (and any other
official plugin) to be able to work with the `defaultCompileSdkVersion` set to
22?

----------------------------------------------------------------
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]