diff --git a/.gitignore b/.gitignore index 25786692..1864dd01 100644 --- a/.gitignore +++ b/.gitignore @@ -86,4 +86,5 @@ app/schemas/ signatures/ -app/.cxx \ No newline at end of file +app/.cxx +/i18n/ diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/grades/viewholder/SubjectViewHolder.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/grades/viewholder/SubjectViewHolder.kt index 0dce6297..58015a0a 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/grades/viewholder/SubjectViewHolder.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/grades/viewholder/SubjectViewHolder.kt @@ -112,6 +112,9 @@ class SubjectViewHolder( )) } + // remove previously added grades from year preview + if (b.yearContainer.childCount > 1) + b.yearContainer.removeViews(1, b.yearContainer.childCount - 1) // add the yearly grades to summary container (expanded) item.proposedGrade?.let { b.yearContainer.addView(GradeView(