X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/de5d818781c4eac82372f463e45991ce9087fc85..233553a081997ec256715552aac691c6563cbe45:/src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java diff --git a/src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java b/src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java index 73b74ed5..1dcc7457 100644 --- a/src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java +++ b/src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java @@ -128,9 +128,12 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter { intent.putExtra(FileDownloader.EXTRA_ACCOUNT, getAccount()); intent.putExtra(FileDownloader.EXTRA_FILE_PATH, file.getURLDecodedRemotePath()); intent.putExtra(FileDownloader.EXTRA_REMOTE_PATH, file.getRemotePath()); + intent.putExtra(FileDownloader.EXTRA_FILE_SIZE, file.getFileLength()); file.setKeepInSync(true); getContext().startService(intent); } + if (getStorageManager().getFileByPath(file.getRemotePath()) != null) + file.setKeepInSync(getStorageManager().getFileByPath(file.getRemotePath()).keepInSync()); getStorageManager().saveFile(file); if (parentId == 0) parentId = file.getFileId();