Skip to content

Commit

Permalink
fix(android): Use VERSION_CODES instead of hard-coded API literals (#904
Browse files Browse the repository at this point in the history
)
  • Loading branch information
breautek authored Oct 25, 2024
1 parent 4448030 commit feb7643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/CameraLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ private void processResultFromCamera(int destType, Intent intent) throws IOExcep
if (this.allowEdit && this.croppedUri != null) {
writeUncompressedImage(croppedUri, galleryUri);
} else {
if (Build.VERSION.SDK_INT <= 28) { // Between LOLLIPOP_MR1 and P, can be changed later to the constant Build.VERSION_CODES.P
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) {
writeTakenPictureToGalleryLowerThanAndroidQ(galleryUri);
} else { // Android Q or higher
writeTakenPictureToGalleryStartingFromAndroidQ(galleryPathVO);
Expand Down

0 comments on commit feb7643

Please sign in to comment.