Skip to content

Commit

Permalink
fix: Update deprecated functions (#149)
Browse files Browse the repository at this point in the history
Fix warning `[deprecation] GuardedAsyncTask(ReactContext) in GuardedAsyncTask has been deprecated`
  • Loading branch information
yilinjuang committed Mar 26, 2020
1 parent 334ab0e commit 3e38ab1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private static class SaveToCameraRoll extends GuardedAsyncTask<Void, Void> {
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;
Expand Down Expand Up @@ -274,7 +274,7 @@ private GetMediaTask(
long fromTime,
long toTime,
Promise promise) {
super(context);
super(context.getExceptionHandler());
mContext = context;
mFirst = first;
mAfter = after;
Expand Down Expand Up @@ -612,7 +612,7 @@ private static class DeletePhotos extends GuardedAsyncTask<Void, Void> {
private final Promise mPromise;

public DeletePhotos(ReactContext context, ReadableArray uris, Promise promise) {
super(context);
super(context.getExceptionHandler());
mContext = context;
mUris = uris;
mPromise = promise;
Expand Down

0 comments on commit 3e38ab1

Please sign in to comment.