alhazmy13 / HijriDatePicker

Material (Gregorian - Hijri) Date & Time Picker
alhazmy13.net
Apache License 2.0
143 stars 63 forks source link

App is crashing! #10

Closed yasirtahir closed 8 years ago

yasirtahir commented 8 years ago

Dear,

If you click on the empty area where there is no date, the application got crashed with an error Unable to parse Integer. Following is the code line of HijriCalendarView class where application is crashing:

calendarInstance.setDay(Integer.parseInt(temp.getText().toString()));

To fix this issues, correct the String empty check:

if (!temp.getText().toString().isEmpty()) to if (!temp.getText().toString().trim().isEmpty())

alhazmy13 commented 8 years ago

Solved Now