(1) Fixing issue of app crashing when editing database entries
RELATED ISSUES
Closes #223 (closed)
DEPENDENTS
BRANCH NAME
issue_223_database_update_crash
SUMMARY OF ISSUE/BUG
When the user scans an item and the item is already in the database, and the user hits 'Incorrect' and proceeds to edit all the data associated with that particular item, after hitting 'Accept', the app crashes.
DESCRIPTION OF UPDATE
Currently there is no code for the app to utilize when editing already existing database entries, so that code is what will be in this update.
STEPS TO TEST
- Go to the 'Check Expiration Date' feature within the app.
- Scan or enter a barcode for an item -> you will be taken to SelectItemFragment or ConfirmItemFragment
- Fill in the required information if in
SelectItemFragment
, or press confirm if inConfirmItemFragment
-> you will be taken to SelectPrintedExpirationDateFragment. - Select a random date.
- Press 'Accept' - you will be taken to DisplayTrueExpirationFragment
- Exit out of app.
- Open app.
- Go to the 'Check Expiration Date' feature within the app.
- Scan or enter a barcode for the same item you scanned/input before -> you will be taken to ConfirmItemFragment
- Hit 'Incorrect' -> you will be taken to 'SelectItemFragment'
- Fill in the required information if in
SelectItemFragment
and click the 'Accept' button.
Confirm that upon moving hitting 'Accept', the app doesn't crash.
NOTES
N/A
LABELS
NEST
component:check-expiration-date
type::bug
status::doing
Edited by Tyler Sizse