mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 02:17:43 +03:00
Fixed local state of file after a successful reupload
This commit is contained in:
parent
eb2d8e28dc
commit
61f36d2a93
1 changed files with 3 additions and 0 deletions
|
@ -597,6 +597,9 @@ public class FileUploader extends Service implements OnDatatransferProgressListe
|
||||||
*/
|
*/
|
||||||
private void saveUploadedFile() {
|
private void saveUploadedFile() {
|
||||||
OCFile file = mCurrentUpload.getFile();
|
OCFile file = mCurrentUpload.getFile();
|
||||||
|
if (file.fileExists()) {
|
||||||
|
file = mStorageManager.getFileById(file.getFileId());
|
||||||
|
}
|
||||||
long syncDate = System.currentTimeMillis();
|
long syncDate = System.currentTimeMillis();
|
||||||
file.setLastSyncDateForData(syncDate);
|
file.setLastSyncDateForData(syncDate);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue