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
f2f56c04
Commit
f2f56c04
authored
Sep 01, 2021
by
narinder Rana
Browse files
null check
parent
a8941f28
Pipeline
#133004
failed with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/drive/services/FileObserverService.java
View file @
f2f56c04
...
...
@@ -63,18 +63,20 @@ public class FileObserverService extends Service {
Log
.
d
(
"OnEvent"
,
"...Event ..."
+
event
+
"...file ..."
+
file
);
SyncedFileState
syncedFileStates
=
DbHelper
.
loadSyncedFile
(
getApplicationContext
(),
file
.
get
Absolute
Path
(),
true
);
SyncedFileState
syncedFileStates
=
DbHelper
.
loadSyncedFile
(
getApplicationContext
(),
file
.
getPath
(),
true
);
syncedFileStatesList
.
add
(
syncedFileStates
);
if
(
null
!=
syncedFileStates
){
syncedFileStatesList
.
add
(
syncedFileStates
);
}
files
.
add
(
file
);
//Check internet
// Add event in List<File>
//InitializerService.fileObserver.add(file);
//call to ObserverService >> getSyncedFileState >> HandleLocal File
try
{
if
(
observerFlag
==
-
1
){
...
...
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