[Grades] Fix counting average without weight.

This commit is contained in:
Kuba Szczodrzyński 2020-03-17 16:06:22 +01:00
parent 507657f273
commit c384736840

View File

@ -313,8 +313,6 @@ class GradesFragment : Fragment(), CoroutineScope {
private fun countGrade(grade: Grade, averages: GradesAverages) {
val value = manager.getGradeValue(grade)
val weight = manager.getGradeWeight(dontCountEnabled, dontCountGrades, grade)
if (weight == 0f)
return
when (grade.type) {
Grade.TYPE_NORMAL -> {
if (grade.value > 0f) {