Skip to content

Commit

Permalink
Merge pull request #3 from BenHenning/update-pr-4383
Browse files Browse the repository at this point in the history
Update PR oppia#4383 with various fixes
  • Loading branch information
KevinGitonga authored Sep 29, 2022
2 parents 342bacc + 1630af9 commit 60b6e25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class MarkChaptersCompletedFragmentPresenter @Inject constructor(
}
} else if (binding.isAllChecked == true) {
binding.isAllChecked = false
getMarkChaptersCompletedViewModel().getItemList().forEach { viewModel ->
viewModel.getItemList().forEach { viewModel ->
if (viewModel is ChapterSummaryViewModel) {
if (!viewModel.checkIfChapterIsCompleted()) {
chapterUnselected(viewModel.chapterIndex, viewModel.nextStoryIndex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class MarkStoriesCompletedFragmentPresenter @Inject constructor(
storySelected(viewModel.storySummary.storyId)
}
} else {
getMarkStoriesCompletedViewModel().getStorySummaryMap().values.forEach { viewModel ->
viewModel.getStorySummaryMap().values.forEach { viewModel ->
if (!viewModel.isCompleted) storyUnselected(viewModel.storySummary.storyId)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MarkTopicsCompletedFragmentPresenter @Inject constructor(
if (!viewModel.isCompleted) topicSelected(viewModel.topic.topicId)
}
} else {
getMarkTopicsCompletedViewModel().getTopicList().forEach { viewModel ->
viewModel.getTopicList().forEach { viewModel ->
if (!viewModel.isCompleted) topicUnselected(viewModel.topic.topicId)
}
}
Expand Down

0 comments on commit 60b6e25

Please sign in to comment.