forked from github/szkolny
[UI] Fix semester grades overlapping when scrolling.
This commit is contained in:
parent
9b13552b73
commit
97e0f36f09
3
.gitignore
vendored
3
.gitignore
vendored
@ -86,4 +86,5 @@ app/schemas/
|
||||
|
||||
signatures/
|
||||
|
||||
app/.cxx
|
||||
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