Skip to content

Commit

Permalink
Fix duplicate slot in exam schedule (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
ezhil56x authored Apr 6, 2024
1 parent db66c44 commit 8b8406d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ public void setExamItem(Exam.AllData examItem) {
venue.setVisibility(View.VISIBLE);
}

slots.removeAllViews();

for (int i = 0; i < examItem.slots.size(); ++i) {
Chip slot = new Chip(this.examItem.getContext());
slot.setChipIconResource(R.drawable.ic_theory);
Expand Down

0 comments on commit 8b8406d

Please sign in to comment.