Skip to content

Commit feb7643

Browse files
authored
fix(android): Use VERSION_CODES instead of hard-coded API literals (#904)
1 parent 4448030 commit feb7643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/android/CameraLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ private void processResultFromCamera(int destType, Intent intent) throws IOExcep
518518
if (this.allowEdit && this.croppedUri != null) {
519519
writeUncompressedImage(croppedUri, galleryUri);
520520
} else {
521-
if (Build.VERSION.SDK_INT <= 28) { // Between LOLLIPOP_MR1 and P, can be changed later to the constant Build.VERSION_CODES.P
521+
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) {
522522
writeTakenPictureToGalleryLowerThanAndroidQ(galleryUri);
523523
} else { // Android Q or higher
524524
writeTakenPictureToGalleryStartingFromAndroidQ(galleryPathVO);

0 commit comments

Comments
 (0)