simonpoole/OpeningHoursFragment

Crash in template selector

Closed this issue · 1 comments

Rotating the device while in the template selector will crash vespucci (not the test app) with

java.lang.IllegalStateException: Fragment OpeningHoursFragment{2120f77} not attached to a context.
at android.support.v4.app.Fragment.requireContext(Fragment.java:614)
at android.support.v4.app.Fragment.getResources(Fragment.java:678)
at ch.poole.openinghoursfragment.OpeningHoursFragment.valueToEntry(OpeningHoursFragment.java:3315)

in the call to getResources().

Crash fixed in cbf2828