Skip to content

Fixing ArrayIndexOutOfBoundsException when selecting printed expiration date out of order

Tyler Sizse requested to merge issue_220_printed_expiration_date into master

RELATED ISSUES

Closes #220 (closed);

DESCRIPTION

Fixing ArrayIndexOutOfBoundsException when selecting printed expiration date out of order.

STEPS TO TEST

  1. Go to the 'Check Expiration Date' feature within the app.
  2. Scan or enter a barcode.
  3. Fill in the required information if in SelectItemFragment, or press confirm if in ConfirmItemFragment.
  4. Select a date in any random order.
  5. 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 use Calander 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

Merge request reports