projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Grant that notifications of finished downloads can be removed from notification are...
[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
871d2ab
..
c675389
100644
(file)
--- a/
src/com/owncloud/android/files/services/FileObserverService.java
+++ b/
src/com/owncloud/android/files/services/FileObserverService.java
@@
-22,6
+22,7
@@
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import java.util.HashMap;
import java.util.Map;
+import com.owncloud.android.MainApp;
import com.owncloud.android.datamodel.FileDataStorageManager;
import com.owncloud.android.datamodel.OCFile;
import com.owncloud.android.db.ProviderMeta.ProviderTableMeta;
import com.owncloud.android.datamodel.FileDataStorageManager;
import com.owncloud.android.datamodel.OCFile;
import com.owncloud.android.db.ProviderMeta.ProviderTableMeta;
@@
-141,7
+142,7
@@
public class FileObserverService extends Service {
null);
if (c == null || !c.moveToFirst()) return;
AccountManager acm = AccountManager.get(this);
null);
if (c == null || !c.moveToFirst()) return;
AccountManager acm = AccountManager.get(this);
- Account[] accounts = acm.getAccounts
(
);
+ Account[] accounts = acm.getAccounts
ByType(MainApp.getAccountType()
);
do {
Account account = null;
for (Account a : accounts)
do {
Account account = null;
for (Account a : accounts)
@@
-162,8
+163,7
@@
public class FileObserverService extends Service {
OwnCloudFileObserver observer =
new OwnCloudFileObserver( path,
account,
OwnCloudFileObserver observer =
new OwnCloudFileObserver( path,
account,
- getApplicationContext(),
- OwnCloudFileObserver.CHANGES_ONLY);
+ getApplicationContext());
mObserversMap.put(path, observer);
if (new File(path).exists()) {
observer.startWatching();
mObserversMap.put(path, observer);
if (new File(path).exists()) {
observer.startWatching();
@@
-202,8
+202,7
@@
public class FileObserverService extends Service {
/// the local file was never registered to observe before
observer = new OwnCloudFileObserver( localPath,
account,
/// the local file was never registered to observe before
observer = new OwnCloudFileObserver( localPath,
account,
- getApplicationContext(),
- OwnCloudFileObserver.CHANGES_ONLY);
+ getApplicationContext());
mObserversMap.put(localPath, observer);
Log_OC.d(TAG, "Observer added for path " + localPath);
mObserversMap.put(localPath, observer);
Log_OC.d(TAG, "Observer added for path " + localPath);