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 -> {
|
Status.SUCCESS -> {
|
||||||
Timber.i("Loading grade stats result: Success")
|
Timber.i("Loading grade stats result: Success")
|
||||||
view?.run {
|
view?.run {
|
||||||
showEmpty(it.data!!.isEmpty())
|
showEmpty(it.data!!.isEmpty() || it.data.first().partial.isEmpty())
|
||||||
showContent(it.data.isNotEmpty())
|
showContent(it.data.isNotEmpty() && it.data.first().partial.isNotEmpty())
|
||||||
showErrorView(false)
|
showErrorView(false)
|
||||||
updateData(it.data, preferencesRepository.gradeColorTheme, preferencesRepository.showAllSubjectsOnStatisticsList)
|
updateData(it.data, preferencesRepository.gradeColorTheme, preferencesRepository.showAllSubjectsOnStatisticsList)
|
||||||
showSubjects(!preferencesRepository.showAllSubjectsOnStatisticsList)
|
showSubjects(!preferencesRepository.showAllSubjectsOnStatisticsList)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user