Commit 7e1ae97b authored by narinder Rana's avatar narinder Rana
Browse files

update arrayList to CopyOnWriteArrayList

parent 56291c19
Pipeline #146894 passed with stage
in 59 seconds
...@@ -32,6 +32,7 @@ import java.io.File; ...@@ -32,6 +32,7 @@ import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import foundation.e.drive.models.SyncedFolder; import foundation.e.drive.models.SyncedFolder;
import foundation.e.drive.operations.CreateInitialFolderRemoteOperation; import foundation.e.drive.operations.CreateInitialFolderRemoteOperation;
...@@ -62,7 +63,7 @@ public class InitializerService extends Service ...@@ -62,7 +63,7 @@ public class InitializerService extends Service
private int restartFolderCreationCounter =0; private int restartFolderCreationCounter =0;
private ConnectivityReceiver connectivityReceiver; private ConnectivityReceiver connectivityReceiver;
public static List<File> remoteDownloadFile=new ArrayList<>(); public static List<File> remoteDownloadFile=new CopyOnWriteArrayList<>();
public static boolean schedulerFlag=false; public static boolean schedulerFlag=false;
public static boolean fileObserverFlag=false; public static boolean fileObserverFlag=false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment