jasminb / megastoragemanager

Android application providing sync and data management tools for mega cloud storage
5 stars 2 forks source link

Auto-refresh Cloud tab #15

Open ja02 opened 9 years ago

ja02 commented 9 years ago

In version 2.1.0-test3, when the user uploads a local file to the cloud, the Cloud tab stays outdated until manually refreshed.

I suggest that when the upload finishes, the Cloud tab could get a dirty flag set. When the user then switches to that tab and the flag is set, it would auto-refresh.

ja02 commented 9 years ago

The implementation on 2.1.0-test8 is suboptimal. When the upload finishes and I tap on the upload notification, the tab auto-refreshes nicely. However, consider this scenario:

  1. I start an upload and switch to Sync tab to tinker with the syncs.
  2. In the meantime, the upload finishes and displays the notification.
  3. I see the notification, so I switch back to the Cloud tab.

Expected: The tab auto-refreshes so that I can see the newly uploaded file. Error: The content of the tab stays outdated.

And this is not the end yet:

  1. I press the Refresh to manually refresh the content of the tab.
  2. After some time, I tap the notification to get rid of it.

Error: A redundant refresh (= network request) is triggered, although the tab is now up-to-date (it has been manually refreshed in 1.) Expected: No network traffic.

jasminb commented 9 years ago

Hey,

Intention of this was not to fix issue documented here, but as an improvement to current state where clicking on upload finished notification simply does not do anything at all.

ja02 commented 9 years ago

OK, I see. Keeping this issue open for future implementation.