projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- moved MediaScan to DownloadFileOperation.
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
services
/
observer
/
FileObserverService.java
diff --git
a/src/com/owncloud/android/services/observer/FileObserverService.java
b/src/com/owncloud/android/services/observer/FileObserverService.java
index
fb9df7c
..
d81f35b
100644
(file)
--- a/
src/com/owncloud/android/services/observer/FileObserverService.java
+++ b/
src/com/owncloud/android/services/observer/FileObserverService.java
@@
-353,7
+353,7
@@
public class FileObserverService extends Service {
Log_OC.d(TAG, "Received broadcast intent " + intent);
File downloadedFile = new File(intent.getStringExtra(FileDownloader.EXTRA_FILE_PATH));
Log_OC.d(TAG, "Received broadcast intent " + intent);
File downloadedFile = new File(intent.getStringExtra(FileDownloader.EXTRA_FILE_PATH));
- String parentPath = downloadedFile.getParent();
+ String parentPath = downloadedFile.getParent();
FolderObserver observer = mFolderObserversMap.get(parentPath);
if (observer != null) {
if (intent.getAction().equals(FileDownloader.getDownloadFinishMessage())
FolderObserver observer = mFolderObserversMap.get(parentPath);
if (observer != null) {
if (intent.getAction().equals(FileDownloader.getDownloadFinishMessage())
@@
-369,13
+369,6
@@
public class FileObserverService extends Service {
}
} else {
}
} else {
-
- if (downloadedFile.exists()){
- Log_OC.d("mediaScan", "mediaScan : " + downloadedFile.getAbsolutePath());
- MediaScannerConnection.scanFile(getApplicationContext(),
- new String[]{downloadedFile.getAbsolutePath()}, null, null);
- }
-
Log_OC.d(TAG, "No observer for path " + downloadedFile.getAbsolutePath());
}
}
Log_OC.d(TAG, "No observer for path " + downloadedFile.getAbsolutePath());
}
}