Skip to content

Commit a9ef278

Browse files
Merge remote-tracking branch 'origin/feat/progress_bar_and_sections_ui' into feat/progress_bar_and_sections_ui
# Conflicts: # core/src/main/java/org/openedx/core/data/model/room/discovery/EnrolledCourseEntity.kt # course/src/main/java/org/openedx/course/presentation/outline/CourseOutlineViewModel.kt # course/src/main/java/org/openedx/course/presentation/section/CourseSectionFragment.kt # course/src/main/java/org/openedx/course/presentation/ui/CourseUI.kt
2 parents b72fc59 + d3ce5ae commit a9ef278

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

course/src/main/java/org/openedx/course/presentation/outline/CourseOutlineViewModel.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class CourseOutlineViewModel(
6565
coreAnalytics
6666
) {
6767
val isCourseNestedListEnabled get() = config.isCourseDropdownNavigationEnabled()
68+
val isCourseExpandableSectionsEnabled get() = config.isCourseDropdownNavigationEnabled()
6869

6970
private val _uiState = MutableStateFlow<CourseOutlineUIState>(CourseOutlineUIState.Loading)
7071
val uiState: StateFlow<CourseOutlineUIState>
@@ -81,8 +82,6 @@ class CourseOutlineViewModel(
8182
private var resumeSectionBlock: Block? = null
8283
private var resumeVerticalBlock: Block? = null
8384

84-
private val isCourseExpandableSectionsEnabled get() = config.isCourseDropdownNavigationEnabled()
85-
8685
private val courseSubSections = mutableMapOf<String, MutableList<Block>>()
8786
private val subSectionsDownloadsCount = mutableMapOf<String, Int>()
8887
val courseSubSectionUnit = mutableMapOf<String, Block?>()

0 commit comments

Comments
 (0)