mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 02:17:43 +03:00
Fixed wrong local state of a file after a download finishes
This commit is contained in:
parent
7cf9c82cc0
commit
3e6de92847
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ public class FileDownloader extends Service implements OnDatatransferProgressLis
|
||||||
* Updates the OC File after a successful download.
|
* Updates the OC File after a successful download.
|
||||||
*/
|
*/
|
||||||
private void saveDownloadedFile() {
|
private void saveDownloadedFile() {
|
||||||
OCFile file = mCurrentDownload.getFile();
|
OCFile file = mStorageManager.getFileById(mCurrentDownload.getFile().getFileId());
|
||||||
long syncDate = System.currentTimeMillis();
|
long syncDate = System.currentTimeMillis();
|
||||||
file.setLastSyncDateForProperties(syncDate);
|
file.setLastSyncDateForProperties(syncDate);
|
||||||
file.setLastSyncDateForData(syncDate);
|
file.setLastSyncDateForData(syncDate);
|
||||||
|
|
Loading…
Reference in a new issue