feat: Enable Calendar Sync for Instructor Paced courses
fix:
@@ -213,7 +213,6 @@ class CourseDatesPageFragment : OfflineSupportBaseFragment(), BaseFragment.Permi
binding.syncCalendarContainer.visibility = View.GONE
return
}
- if (isSelfPaced) {
ConfigUtil.checkCalendarSyncEnabled(environment.config, object : ConfigUtil.OnCalendarSyncListener {
override fun onCalendarSyncResponse(response: CourseDatesCalendarSync) {
if (!response.disabledVersions.contains(VERSION_NAME) && ((response.isSelfPlacedEnable && isSelfPaced) || (response.isInstructorPlacedEnable && !isSelfPaced))) {
@@ -222,9 +221,7 @@ class CourseDatesPageFragment : OfflineSupportBaseFragment(), BaseFragment.Permi
}
}
})
- } else {
- binding.syncCalendarContainer.visibility = View.GONE
- }
+
CourseDateUtil.setupCourseDatesBanner(view = binding.banner.root, isCourseDatePage = true, courseId = courseData.courseId,
enrollmentMode = courseData.mode, isSelfPaced = isSelfPaced, screenName = Analytics.Screens.PLS_COURSE_DATES,
analyticsRegistry = environment.analyticsRegistry, courseBannerInfoModel = courseBannerInfo,
