Commit ef439986 authored by narinder Rana's avatar narinder Rana
Browse files

initialization

parent 07fc6c5a
Pipeline #129096 passed with stage
in 1 minute and 47 seconds
......@@ -55,16 +55,23 @@ public class FileObserverService extends Service {
if(event== FileObserver.CREATE || event==FileObserver.MODIFY || event== FileObserver.DELETE || event ==FileObserver.MOVED_TO){
Log.d("OnEvent", "...Event ..." + event+"...file ..." + file);
try
{
if(observerFlag == -1){
new AsyncTaskRunner().execute("");
}
}
catch (Exception e)
{
e.printStackTrace();
}
//Check internet
// Add event in List<File>
//call to ObserverService >> getSyncedFileState >> HandleLocal File
// try
// {
// if(observerFlag == -1){
// new AsyncTaskRunner().execute("");
// }
// }
// catch (Exception e)
// {
// e.printStackTrace();
// }
}
}
......
......@@ -628,6 +628,10 @@ public class ObserverService extends Service implements OnRemoteOperationListene
}
}
//Create function about getSyncedFileState input List<File> from Database
//call handleLocalFiles
/**
* This function determine the action to do depending for each file or syncedFileState
* If file has already be synced and modified since last synced then update (= upload)
......
Supports Markdown
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