From ba6fb1a4b90d661ff021a72a8ef8f0447173dd5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Borcz?= Date: Fri, 7 Jun 2019 14:46:11 +0200 Subject: [PATCH] Fix update of grades in GradeDetailsFragment (#406) --- .../wulkanowy/ui/modules/grade/details/GradeDetailsPresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/grade/details/GradeDetailsPresenter.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/grade/details/GradeDetailsPresenter.kt index 184527e23..29911a541 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/grade/details/GradeDetailsPresenter.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/grade/details/GradeDetailsPresenter.kt @@ -113,7 +113,7 @@ class GradeDetailsPresenter @Inject constructor( .flatMap { (student, semesters) -> averageProvider.getGradeAverage(student, semesters, semesterId, forceRefresh) .flatMap { averages -> - gradeRepository.getGrades(student, semesters.first { semester -> semester.semesterId == semesterId }) + gradeRepository.getGrades(student, semesters.first { it.semesterId == semesterId }, forceRefresh) .map { it.sortedByDescending { grade -> grade.date } } .map { it.groupBy { grade -> grade.subject }.toSortedMap() } .map { createGradeItems(it, averages) }