Fixed CourseDatesActivity crash by implementing onSaveInstanceState()
@@ -51,6 +51,12 @@ public class CourseDatesActivity extends BaseSingleFragmentActivity {
analyticsRegistry.trackScreenView(Analytics.Screens.COURSE_DATES, courseData.getCourse().getId(), null);
}
+ @Override
+ public void onSaveInstanceState(Bundle outState) {
+ super.onSaveInstanceState(outState);
+ outState.putSerializable(Router.EXTRA_COURSE_DATA, courseData);
+ }
+
@Override
public Fragment getFirstFragment() {
final StringBuilder courseInfoUrl = new StringBuilder(64);
