fix android 33
This commit is contained in:
parent
1421c1d7e4
commit
2b4f6a3a54
|
@ -649,7 +649,11 @@ public class CameraRollModule extends ReactContextBaseJavaModule {
|
|||
+ photoUri.toString(),
|
||||
e);
|
||||
}
|
||||
try{
|
||||
retriever.release();
|
||||
} catch (IOException e) {
|
||||
// Do nothing. Required catch for gradle 7.2.2 and above
|
||||
}
|
||||
}
|
||||
|
||||
if (photoDescriptor != null) {
|
||||
|
@ -719,7 +723,11 @@ public class CameraRollModule extends ReactContextBaseJavaModule {
|
|||
+ photoUri.toString(),
|
||||
e);
|
||||
}
|
||||
try {
|
||||
retriever.release();
|
||||
} catch (IOException e) {
|
||||
// Do nothing. Required catch for gradle 7.2.2 and above
|
||||
}
|
||||
} else {
|
||||
BitmapFactory.Options options = new BitmapFactory.Options();
|
||||
// Set inJustDecodeBounds to true so we don't actually load the Bitmap, but only get its
|
||||
|
|
Loading…
Reference in New Issue