forked from github/wulkanowy-mirror
Fix bug in grade statistics (#951)
This commit is contained in:
parent
6363c90e37
commit
ec761f6329
@ -164,8 +164,8 @@ class GradeStatisticsPresenter @Inject constructor(
|
||||
Status.SUCCESS -> {
|
||||
Timber.i("Loading grade stats result: Success")
|
||||
view?.run {
|
||||
showEmpty(it.data!!.isEmpty())
|
||||
showContent(it.data.isNotEmpty())
|
||||
showEmpty(it.data!!.isEmpty() || it.data.first().partial.isEmpty())
|
||||
showContent(it.data.isNotEmpty() && it.data.first().partial.isNotEmpty())
|
||||
showErrorView(false)
|
||||
updateData(it.data, preferencesRepository.gradeColorTheme, preferencesRepository.showAllSubjectsOnStatisticsList)
|
||||
showSubjects(!preferencesRepository.showAllSubjectsOnStatisticsList)
|
||||
|
Loading…
x
Reference in New Issue
Block a user