Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

UI doesn't update after updating the database #304

Closed
huangyz0918 opened this issue Aug 19, 2019 · 2 comments
Closed

UI doesn't update after updating the database #304

huangyz0918 opened this issue Aug 19, 2019 · 2 comments

Comments

@huangyz0918
Copy link
Contributor

Software and hardware versions

Android 7 and Android 5

Problem description

When we transferred a filled form, in the receiver's main page, we can see something like Unreviewed: 1, but the UI would not update until you restart the main activity. This issue was discovered when testing in #300 .

Steps to reproduce the problem

  • transferring a filled form
  • after seeing the result dialog, receiver and sender would back into the main page
  • but the list view will not update until you restart your activity.

or

  • transferring a filled form
  • after seeing the result dialog, receiver and sender would back into the main page
  • click the reset application -> reset saved forms and back into the main page
  • the Unreviewed: 1 still exists but not updated to 0.

Expected behavior

The UI should update once the database changed.

Other information

Things you tried, stack traces, related issues, suggestions on how to fix it...

@huangyz0918 huangyz0918 changed the title UI doesn't not update after updating the database UI doesn't update after updating the database Aug 19, 2019
@huangyz0918
Copy link
Contributor Author

I think this issue may related to the injected objects in MainActivity, after updating the database and back into MainActivity (on resume), those DTO and DAO objects did not update, so the corresponding UI will not update until that updated.

@huangyz0918
Copy link
Contributor Author

duplicate #309

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant