forked from github/szkolny
[UI] Fix semester grades overlapping when scrolling.
This commit is contained in:
parent
9b13552b73
commit
97e0f36f09
1
.gitignore
vendored
1
.gitignore
vendored
@ -87,3 +87,4 @@ app/schemas/
|
||||
signatures/
|
||||
|
||||
app/.cxx
|
||||
/i18n/
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user