projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Granted update of modificationTimestamp with the end of downloads and uploads
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
files
/
services
/
FileObserverService.java
diff --git
a/src/com/owncloud/android/files/services/FileObserverService.java
b/src/com/owncloud/android/files/services/FileObserverService.java
index
70b6b21
..
41e4e52
100644
(file)
--- a/
src/com/owncloud/android/files/services/FileObserverService.java
+++ b/
src/com/owncloud/android/files/services/FileObserverService.java
@@
-158,12
+158,12
@@
public class FileObserverService extends Service implements FileObserverStatusLi
observer = mObservers.get(i);
if (observer.getPath().equals(path))
duplicate = true;
observer = mObservers.get(i);
if (observer.getPath().equals(path))
duplicate = true;
- observer.setContext(get
Base
Context());
+ observer.setContext(get
Application
Context());
}
if (duplicate) return;
observer = new OwnCloudFileObserver(path, OwnCloudFileObserver.CHANGES_ONLY);
}
if (duplicate) return;
observer = new OwnCloudFileObserver(path, OwnCloudFileObserver.CHANGES_ONLY);
- observer.setContext(get
Base
Context());
- Account account = AccountUtils.getCurrentOwnCloudAccount(get
Base
Context());
+ observer.setContext(get
Application
Context());
+ Account account = AccountUtils.getCurrentOwnCloudAccount(get
Application
Context());
observer.setAccount(account);
FileDataStorageManager storage =
new FileDataStorageManager(account, getContentResolver());
observer.setAccount(account);
FileDataStorageManager storage =
new FileDataStorageManager(account, getContentResolver());