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
c1c7cacb
Commit
c1c7cacb
authored
Jul 20, 2020
by
Arnau Vàzquez
Browse files
Merge branch '114-issue-o' into 'v1-oreo'
Resolve "reduce eDrive polling" See merge request e/apps/eDrive!37
parents
b345f093
c64ff79e
Pipeline
#63725
passed with stage
in 1 minute and 51 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
c1c7cacb
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
/.idea/workspace.xml
/.idea/workspace.xml
/.idea/libraries
/.idea/libraries
/.idea/codeStyles/
/.idea/codeStyles/
.idea
.DS_Store
.DS_Store
/build
/build
/captures
/captures
...
...
app/src/main/java/foundation/e/drive/operations/ListFileRemoteOperation.java
View file @
c1c7cacb
...
@@ -155,6 +155,13 @@ public class ListFileRemoteOperation extends RemoteOperation {
...
@@ -155,6 +155,13 @@ public class ListFileRemoteOperation extends RemoteOperation {
Log
.
w
(
TAG
,
"LightReadFolderRemoteOperation failed : http "
+
result
.
getHttpCode
()
+
", "
+
result
.
getLogMessage
()+
" => Ignored"
);
Log
.
w
(
TAG
,
"LightReadFolderRemoteOperation failed : http "
+
result
.
getHttpCode
()
+
", "
+
result
.
getLogMessage
()+
" => Ignored"
);
}
}
try
{
Thread
.
sleep
(
150
);
}
catch
(
InterruptedException
e
){
Log
.
w
(
TAG
,
"listFileRemoteOperation's sleep had been interrupted"
);
}
}
//End of loop
}
//End of loop
finalResult
=
new
RemoteOperationResult
(
RemoteOperationResult
.
ResultCode
.
OK
);
finalResult
=
new
RemoteOperationResult
(
RemoteOperationResult
.
ResultCode
.
OK
);
...
...
app/src/main/java/foundation/e/drive/services/ObserverService.java
View file @
c1c7cacb
...
@@ -62,7 +62,7 @@ import static foundation.e.drive.utils.AppConstants.INITIALIZATION_HAS_BEEN_DONE
...
@@ -62,7 +62,7 @@ import static foundation.e.drive.utils.AppConstants.INITIALIZATION_HAS_BEEN_DONE
*/
*/
public
class
ObserverService
extends
Service
implements
OnRemoteOperationListener
{
public
class
ObserverService
extends
Service
implements
OnRemoteOperationListener
{
private
final
static
String
TAG
=
ObserverService
.
class
.
getSimpleName
();
private
final
static
String
TAG
=
ObserverService
.
class
.
getSimpleName
();
private
final
static
int
INTERSYNC_MINIMUM_DELAY
=
3
00000
;
// min delay between two sync in ms.
private
final
static
int
INTERSYNC_MINIMUM_DELAY
=
9
00000
;
// min delay between two sync in ms.
private
List
<
SyncedFolder
>
mSyncedFolders
;
//List of synced folder
private
List
<
SyncedFolder
>
mSyncedFolders
;
//List of synced folder
private
boolean
isWorking
=
false
;
private
boolean
isWorking
=
false
;
...
...
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