From 3e38ab1419eabd1c331d5261a686a0b0a5e22a6f Mon Sep 17 00:00:00 2001 From: "Juang, Yi-Lin" Date: Thu, 26 Mar 2020 16:20:41 +0800 Subject: [PATCH] fix: Update deprecated functions (#149) Fix warning `[deprecation] GuardedAsyncTask(ReactContext) in GuardedAsyncTask has been deprecated` --- .../reactnativecommunity/cameraroll/CameraRollModule.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java b/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java index 63896c886..0c62c7fe2 100644 --- a/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java +++ b/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java @@ -115,7 +115,7 @@ public class CameraRollModule extends ReactContextBaseJavaModule { private final ReadableMap mOptions; public SaveToCameraRoll(ReactContext context, Uri uri, ReadableMap options, Promise promise) { - super(context); + super(context.getExceptionHandler()); mContext = context; mUri = uri; mPromise = promise; @@ -274,7 +274,7 @@ public class CameraRollModule extends ReactContextBaseJavaModule { long fromTime, long toTime, Promise promise) { - super(context); + super(context.getExceptionHandler()); mContext = context; mFirst = first; mAfter = after; @@ -612,7 +612,7 @@ public class CameraRollModule extends ReactContextBaseJavaModule { private final Promise mPromise; public DeletePhotos(ReactContext context, ReadableArray uris, Promise promise) { - super(context); + super(context.getExceptionHandler()); mContext = context; mUris = uris; mPromise = promise;