Fixed local state of file after a successful reupload

This commit is contained in:
David A. Velasco 2014-02-10 09:42:39 +01:00
parent eb2d8e28dc
commit 61f36d2a93

View file

@ -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);