nomanr / WeekCalendar

A simple weekly calendar.
646 stars 127 forks source link

java.lang.RuntimeException: Fragment is not currently in the FragmentManager #7

Closed Ramfat closed 8 years ago

Ramfat commented 8 years ago

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.

nomanr commented 8 years ago

https://github.com/nomanr/WeekCalendar/issues/8