From f23434df69731f351877e1db5ff32292309ac84b Mon Sep 17 00:00:00 2001 From: Arjan Zuidema Date: Tue, 6 Sep 2022 10:31:30 +0200 Subject: [PATCH] fix(android): retriever.release fix (#425) --- .../com/reactnativecommunity/cameraroll/CameraRollModule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java b/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java index 32febd7..0df2e23 100644 --- a/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java +++ b/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java @@ -700,7 +700,7 @@ public class CameraRollModule extends ReactContextBaseJavaModule { } try { retriever.release(); - } catch (IOException e) { + } catch (Exception e) { // Use general Exception here, see: https://developer.android.com/reference/android/media/MediaMetadataRetriever#release() // Do nothing. We can't handle this, and this is usually a system problem } } @@ -771,7 +771,7 @@ public class CameraRollModule extends ReactContextBaseJavaModule { } try { retriever.release(); - } catch (IOException e) { + } catch (Exception e) { // Use general Exception here, see: https://developer.android.com/reference/android/media/MediaMetadataRetriever#release() // Do nothing. We can't handle this, and this is usually a system problem } } else {