When registering data to local database you can use up navigation to register data infinitely
License and Copyright Notice
By submitting this issue or commenting on this issue, or contributing any content to this issue, you certify under the Developer Certificate of Origin that the content you post may be licensed under GPLv3 (for code) or CC-BY-SA 4.0 International (for non-code content).
Summary
(After you finish registering you can use the up navigation to navigate back to the summary fragment and register as many times as you use the built in back button and click the done button.)
Steps to reproduce
(1. Step 1 Click Guest forms -> Guest Registration (Local Database) 2. Step 2 Fully register while not connected to remote database then open up appinspector -> GuestRegistry.db ->NESTGuestRegistry(datatable) 3. Step 3 With this you can check if the registration data was added to the local database in the app inspector (Turn live updates on) 4. Step 4 Use the back button to return to the summary fragment and click the done button again. 5. Step 5 Look back at the appinspector and you should see you are registering the same data as much as you click the done button. )
What is the current bug behavior?
(The data inputed is registered more than once as the user is allowed to use the back button to return to the summaryfragment after registering)
What is the expected correct behavior?
(The user should not be allowed to use the back button to register after clicking the done button in the summaryfragment.(This may also occur in the remote database but that can be a different issue or it can also be solved in this issue if the user is not allowed to return to the summary fragment after registering ))
Relevant logs and/or screenshots
Possible fixes
(SummaryFragment lines 301 - 391, Research pulling fragments off the callstack relevant link: https://stackoverflow.com/questions/50514758/how-to-clear-navigation-stack-after-navigating-to-another-fragment-in-android Note that the navigation to the guestforms page is not a fragment to a fragment navigation. )