Fixing ArrayIndexOutOfBoundsException when selecting printed expiration date out of order
RELATED ISSUES
Closes #220 (closed);
DESCRIPTION
Fixing ArrayIndexOutOfBoundsException
when selecting printed expiration date out of order.
STEPS TO TEST
- Go to the 'Check Expiration Date' feature within the app.
- Scan or enter a barcode.
- Fill in the required information if in
SelectItemFragment
, or press confirm if inConfirmItemFragment
. - Select a date in any random order.
- Repeat.
The app should no longer crash, no matter the order the date is selected in and should automatically adjust the day depending on the actual maximum amount of days in the selected month.
NOTES
- Converted
SelectPrintedExpirationDate
to useCalander
class instead of hard coding the days and the months. - Updated the default expiration date to be set to the current date.
- Fixed issue with how the back button was being handled through the onPause methods and overwriting Fragment results.
- Cleaned up code, unneeded comments, and unneeded logs.
LABELS
NEST
Component:Check-Expiration-Date
type::bug
status::done
Edited by Tyler Sizse