fix android 33

This commit is contained in:
Roman Volosovskyi 2023-06-28 13:22:23 +02:00
parent 1421c1d7e4
commit 2b4f6a3a54
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 10 additions and 2 deletions

View File

@ -649,7 +649,11 @@ public class CameraRollModule extends ReactContextBaseJavaModule {
+ photoUri.toString(),
e);
}
retriever.release();
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);
}
retriever.release();
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