fix(android): compile error when compileSdkVersion is set to 33 (#419)

This commit is contained in:
Simon Farshid
2022-09-01 13:38:36 +02:00
committed by Santhosh Vaiyapuri
parent 6962577773
commit a0abf74c2e
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
ReactNativeCameraRoll_compileSdkVersion=31
ReactNativeCameraRoll_compileSdkVersion=33
ReactNativeCameraRoll_buildToolsVersion=29.0.2
ReactNativeCameraRoll_targetSdkVersion=31
ReactNativeCameraRoll_minSdkVersion=23
@@ -698,7 +698,11 @@ public class CameraRollModule extends ReactContextBaseJavaModule {
+ photoUri.toString(),
e);
}
retriever.release();
try {
retriever.release();
} catch (IOException e) {
// Do nothing. We can't handle this, and this is usually a system problem
}
}
if (photoDescriptor != null) {
@@ -765,7 +769,11 @@ public class CameraRollModule extends ReactContextBaseJavaModule {
+ photoUri.toString(),
e);
}
retriever.release();
try {
retriever.release();
} catch (IOException e) {
// Do nothing. We can't handle this, and this is usually a system problem
}
} else {
BitmapFactory.Options options = new BitmapFactory.Options();
// Set inJustDecodeBounds to true so we don't actually load the Bitmap, but only get its