X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/ff2271a8c531efe4c2602c63934eca568c397510..97dd59063ba1bf16fa2c176563614a9ce310b158:/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 678c46d2..cfd5fec8 100644 --- a/src/com/owncloud/android/files/services/FileObserverService.java +++ b/src/com/owncloud/android/files/services/FileObserverService.java @@ -156,10 +156,6 @@ public class FileObserverService extends Service implements FileObserverStatusLi * Registers the local copy of a remote file to be observed for local changes, * an automatically updated in the ownCloud server. * - * If there is no local copy of the remote file, a request to download it is send - * to the FileDownloader service. The observation is delayed until the download - * is finished. - * * @param file Object representing a remote file which local copy must be observed. * @param account OwnCloud account containing file. */ @@ -216,11 +212,6 @@ public class FileObserverService extends Service implements FileObserverStatusLi DownloadCompletedReceiver receiver = new DownloadCompletedReceiver(localPath, observer); registerReceiver(receiver, new IntentFilter(FileDownloader.DOWNLOAD_FINISH_MESSAGE)); - Intent i = new Intent(this, FileDownloader.class); - i.putExtra(FileDownloader.EXTRA_ACCOUNT, account); - i.putExtra(FileDownloader.EXTRA_FILE, file); - startService(i); - } else { observer.startWatching(); Log.d(TAG, "Started watching " + localPath);