square/android-times-square — pull request #40 by sannyo (2013-05-09 12:42:31+00:00)
Title: Fix IllegalStateEception when trying to add a header or footer to the CalendarPickerView on Samsung Galaxy Nexus running Android 4.2.2

IllegalStateException...-- setAdapter has already been called when trying to add a header or a footer.

This crash occured on a Samsung Galaxy Nexus running 4.2.2 which is completely normal.
I removed the setAdapter from the consturctor and moved it to the private initialize method and set the adapter only if the getAdapter method returns null.
This change enables the possibility to add header or footer to the CalendarPickerView.