Open dshatz opened 6 years ago
Have you stored anything in:
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
if (mWeekdaysButtons != null) {
// If the mWeekdaysButtons isn't null, save it's state for restoration in onCreate()
mWeekdaysButtons.saveState("wds_tag",outState);
}
}
Yes, sorry, I am saving the instance in onSaveInstanceState:
if(weekDayPicker != null) weekDayPicker.saveState(KEY_WEEK_DAY_PICKER_STATE, outState);
On some devices my app started producing the following exception. It happens after a call to my activity's
onCreate
withsavedInstanceState
not being null. The following code is called:weekDayPicker = WeekdaysDataSource.restoreState(KEY_WEEK_DAY_PICKER_STATE, savedInstanceState, this, this, this);
Only happens on API level 23.
Using latest version:
compile 'com.github.TouchBoarder:weekdays-buttons-bar:v1.0.2'
Any ideas? Exception: