From 61f36d2a93063602b13e5ff6dbdeda348e90bc44 Mon Sep 17 00:00:00 2001 From: "David A. Velasco" Date: Mon, 10 Feb 2014 09:42:39 +0100 Subject: [PATCH] Fixed local state of file after a successful reupload --- src/com/owncloud/android/files/services/FileUploader.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/owncloud/android/files/services/FileUploader.java b/src/com/owncloud/android/files/services/FileUploader.java index 06400c0618..e9a4637a1b 100644 --- a/src/com/owncloud/android/files/services/FileUploader.java +++ b/src/com/owncloud/android/files/services/FileUploader.java @@ -597,6 +597,9 @@ public class FileUploader extends Service implements OnDatatransferProgressListe */ private void saveUploadedFile() { OCFile file = mCurrentUpload.getFile(); + if (file.fileExists()) { + file = mStorageManager.getFileById(file.getFileId()); + } long syncDate = System.currentTimeMillis(); file.setLastSyncDateForData(syncDate);