I just ran into this issue:
A few days ago I downloaded a file with Android ownCloud -> Green triangle with down arrow appeared.
Today I wanted to view the file again (it was updated on the server in the mean time). The file date was updated, so Android ownCloud detected a file change. The green triangle stayed however. When selecting the file, it opened the old version of the file (which I of course noticed too late).
Solution: Long click on file "Update file". This is not intuitive.
Possible fixes:
Suggestion A:
Delete offline file when update is detected (green triangle dissappears as soon file date changes).
Suggestion B:
When clicking an updated file warn user that file has changed on server and suggest to download uptodate copy.
Suggestion C:
When clicking file, download new version. In case of no connection, suggest to open old version of file.
EDITED @rperezb and @owncloud/android-developers :
EDITED @malkomich:
TASKS
333_update_server_changes_on_download_files branch from master in android repo @malkomich333_update_server_changes_on_download_files branch from master in QA repo @jesmrec333_update_server_changes_on_download_files branch into master in QA repo (PR #1736)333_update_server_changes_on_download_files branch into master in android repoBUGS
Pinging @jancborchardt and @javiergonzper to have a look here. Something in this sense is being done in the iOS app in this sense, but I don't have the details in my head.
Yes, a notice like 禄filename was updated on the server.芦 would be good. Then with options to 禄View old file芦 or 禄Download new version芦.
I think the file should be updated when clicking on it without any saying (or "file was updated on server. Downloading new version").
But no option as the user has downloaded the file time ago and at least for me there is no use in presenting him an old version/different version than the one on the server.
I totally agree with @tobiasKaminsky. Anything else is just too complicated. Even when the file is a bit bigger and you鈥檙e on mobile, you would still see the download bar and be able to cancel it.
I agree with @tobiasKaminsky and @jancborchardt the file should be updated when clicking on it. it's probably the simplest and most logical behavior.
This is really annoying :( That lead to loss of content.
Can the file be updated when clicking on it please ?
Thanks !
Validated, but not merged yet.
I'll go for that.
App does not reproduce the updated version, just the old one.
Updated version should be reproduced.
Device: Nexus 5
Android Version: 6.0
OK. Taking care. The steps are not exactly what this issue is about, but the cause of failure is.
Problem with video and audio files are fixed now; but, I discovered similar problems with other files. I updated the first comment with new bugs.
Image files are also refreshed with updates in server.
Going for the next.
Bothering dialogs and toasts out of sight. Going for the next.
@mcastroSG , I'm done. Let's talk about those problems with background sync
Image is not updated with new version
Old image should appear while new version is downloaded and at this point the image should change to the new.
Device: Nexus 5
Android Version: 6.0
Should be fixed now, @mcastroSG
We obtain two final files but progress upper bar does not stop and X button to cancel does not work anymore, seems that once process ends current view is not refreshed or ended.
We obtain two final files and once we have resolve the conflict file view appears on screen again.
Device: Nexus 5
Android Version: 6.0
App crashes
App should not crash
Device: Nexus 5
Android Version: 6.0
There is no overlay icon associated to available offline, even after pull down again to refresh. In order to get the proper overlay we have to navigate to other folder and come back.
A new overlay icon should appear and in case we push three dots button Unset available offline option should appear too.
Device: Nexus 5
Android Version: 6.0
Thanks, @mcastroSG . I'll fix the new bugs now.
He, the third one is a classic. But maybe I had an idea :)
Wrong UI after solving conflict -> fixed.
Crash -> fixed
And once again, all the known bugs are ready to be tested.
@davivel. The steps mentioned in https://github.com/owncloud/android/issues/333#issuecomment-234173901 make the app crash after selecting "Keep Both"
Nooooooooooooooooooooo
I'll have a look
@jesmrec , it's fixed now! :)
@davivel fixed! and approved!!
Thank you very much @davivel !