Skip to content

Commit 9682c2c

Browse files
committed
make var static again
1 parent 7588f82 commit 9682c2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/com/RNFetchBlob/RNFetchBlob.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class RNFetchBlob extends ReactContextBaseJavaModule {
3737

3838
private final OkHttpClient mClient;
3939

40-
ReactApplicationContext RCTContext;
40+
static ReactApplicationContext RCTContext;
4141
private static LinkedBlockingQueue<Runnable> taskQueue = new LinkedBlockingQueue<>();
4242
private static ThreadPoolExecutor threadPool = new ThreadPoolExecutor(5, 10, 5000, TimeUnit.MILLISECONDS, taskQueue);
4343
static LinkedBlockingQueue<Runnable> fsTaskQueue = new LinkedBlockingQueue<>();
@@ -352,7 +352,7 @@ public void getContentIntent(String mime, Promise promise) {
352352

353353
@ReactMethod
354354
public void addCompleteDownload (ReadableMap config, Promise promise) {
355-
DownloadManager dm = (DownloadManager) RNFetchBlob.RCTContext.getSystemService(RNFetchBlob.RCTContext.DOWNLOAD_SERVICE);
355+
DownloadManager dm = (DownloadManager) RCTContext.getSystemService(RCTContext.DOWNLOAD_SERVICE);
356356
String path = RNFetchBlobFS.normalizePath(config.getString("path"));
357357
if(path == null) {
358358
promise.reject("RNFetchblob.addCompleteDownload can not resolve URI:" + config.getString("path"), "RNFetchblob.addCompleteDownload can not resolve URI:" + path);

0 commit comments

Comments
 (0)