Back stack handling may cause display of outdated state
Opened this issue · 3 comments
In some circumstances, the "Included files and folders" page of Storage Backup might incorrectly show an outdated state of the categories toggles, even if one or more had been turned on previously. Tapping to turn on one category updates the state of the rest of them; e.g., if they were all turned on before, the others will correctly appear to be turned on again immediately after tapping one of them.
I think this is related to launching Seedvault from the notification, which appears to create another instance of the Seedvault activity.
Steps to reproduce (untested, guessing):
- Open Seedvault.
- Start a backup.
- In Seedvault settings, visit the "Included files and folders" page under the Storage Backup section. Turn on Storage Backup first if needed.
- Note the category toggles, e.g. all off.
- Remain on this page. Wait for the backup to finish.
- When the backup finishes, tap the finish notification, which will open Seedvault settings.
- Navigate to the "Included files and folders" page again. This time, alter at least one of the toggles.
- Navigate back a few times, and you should end up at the "Included files and folders" page again.
Expected result (untested, guessing):
The page properly represents your recently-changed settings.
Actual result (untested, guessing):
The page shows the state of the toggles from before you changed them. Changing one toggle will refresh it.
Possibly related somehow (because I am including this): #750
This might affect more than just category toggles and the storage backup page. If possible, having the backup notification not launch a new instance may help -- assuming that's what's happening.
@theimpulson using the navigation library may help with this.