mirror of
https://github.com/status-im/react-native-camera-roll.git
synced 2026-08-27 19:31:12 +00:00
fix(android): compile error when compileSdkVersion is set to 33 (#419)
This commit is contained in:
committed by
Santhosh Vaiyapuri
parent
6962577773
commit
a0abf74c2e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user