Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
eDrive
Commits
ef439986
Commit
ef439986
authored
Aug 09, 2021
by
narinder Rana
Browse files
initialization
parent
07fc6c5a
Pipeline
#129096
passed with stage
in 1 minute and 47 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/drive/services/FileObserverService.java
View file @
ef439986
...
...
@@ -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();
// }
}
}
...
...
app/src/main/java/foundation/e/drive/services/ObserverService.java
View file @
ef439986
...
...
@@ -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)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment