X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/10b980cacf9c88dbd51b05b602cfeccccb09d1cb..b6f773bf8c15ea489a11f7fb6ab564a312d66551:/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 fb9df7c5..d81f35ba 100644 --- 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)); - String parentPath = downloadedFile.getParent(); + String parentPath = downloadedFile.getParent(); FolderObserver observer = mFolderObserversMap.get(parentPath); if (observer != null) { if (intent.getAction().equals(FileDownloader.getDownloadFinishMessage()) @@ -369,13 +369,6 @@ public class FileObserverService extends Service { } } 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()); } }