After entering the activity containing the view for the first time, all methods (reset, setSelected, etc) work as they should, but after leaving the activty (i.e activity is finished) and then opening same activity again (new instance) and using WeekCalendar methods the following RuntimeException is thrown:
Unable to start activity : java.lang.RuntimeException: Could not dispatch event: class noman.weekcalendar.eventbus.Event$ResetEvent to handler [EventHandler public void noman.weekcalendar.view.WeekPager.reset(noman.weekcalendar.eventbus.Event$ResetEvent)]: Fragment WeekFragment{3a871760} is not currently in the FragmentManager
Hi.
After entering the activity containing the view for the first time, all methods (reset, setSelected, etc) work as they should, but after leaving the activty (i.e activity is finished) and then opening same activity again (new instance) and using WeekCalendar methods the following RuntimeException is thrown:
Unable to start activity: java.lang.RuntimeException: Could not dispatch event: class noman.weekcalendar.eventbus.Event$ResetEvent to handler [EventHandler public void noman.weekcalendar.view.WeekPager.reset(noman.weekcalendar.eventbus.Event$ResetEvent)]: Fragment WeekFragment{3a871760} is not currently in the FragmentManager
Any idea how to solve this? Thanks in advance.